:root {
      --brand: #EE2021;
      --brand-deep: #c41819;
      --brand-soft: #f24a4b;
      --ink: #1a1214;
      --muted: #6b5a5e;
      --panel: rgba(255, 255, 255, 0.96);
      --line: rgba(238, 32, 33, 0.14);
      --field: #f7f2f3;
      --shadow: 0 24px 60px rgba(180, 20, 22, 0.28);
      --mx: 0;
      --my: 0;
    }

    * { box-sizing: border-box; }

    html, body.login-v2 {
      margin: 0;
      min-height: 100%;
      min-height: 100dvh;
      font-family: 'Outfit', sans-serif;
      color: var(--ink);
      background: #EE2021;
      -webkit-font-smoothing: antialiased;
    }

    body.login-v2 {
      overflow-x: hidden;
    }

    .login-shell {
      position: relative;
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      gap: 1.25rem;
      padding: 2rem 1.25rem 1.25rem;
      isolation: isolate;
    }

    .login-atmosphere {
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        radial-gradient(1200px 600px at 15% -10%, rgba(255, 140, 140, 0.32), transparent 55%),
        radial-gradient(900px 500px at 90% 10%, rgba(242, 74, 75, 0.28), transparent 50%),
        linear-gradient(160deg, #EE2021 0%, #d51818 48%, #b41415 100%);
      overflow: hidden;
      animation: bgShift 12s ease-in-out infinite alternate;
    }

    .login-glow {
      position: absolute;
      border-radius: 50%;
      filter: blur(40px);
      opacity: 0.45;
      animation: floatGlow 10s ease-in-out infinite;
    }

    .login-glow--a {
      width: 280px;
      height: 280px;
      background: #f24a4b;
      top: 12%;
      left: -60px;
      translate: calc(var(--mx) * 18px) calc(var(--my) * 12px);
    }

    .login-glow--b {
      width: 360px;
      height: 360px;
      background: #EE2021;
      right: -80px;
      bottom: 18%;
      animation-delay: -4s;
      translate: calc(var(--mx) * -22px) calc(var(--my) * -14px);
    }

    .login-glow--c {
      width: 200px;
      height: 200px;
      background: #ff8a8b;
      left: 40%;
      bottom: 8%;
      opacity: 0.28;
      animation-delay: -7s;
    }

    .login-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
      background-size: 48px 48px;
      mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
      opacity: 0.35;
      animation: gridDrift 20s linear infinite;
    }

    .login-scan {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 48%,
        rgba(255, 255, 255, 0.16) 50%,
        rgba(255, 255, 255, 0.08) 52%,
        transparent 100%
      );
      background-size: 100% 220%;
      animation: scanSweep 7s ease-in-out infinite;
      pointer-events: none;
      mix-blend-mode: soft-light;
      opacity: 0.55;
    }

    .circ-ticker {
      position: absolute;
      top: clamp(0.4rem, 1.2vh, 0.85rem);
      left: 0;
      right: 0;
      overflow: hidden;
      mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
      opacity: 0.55;
      pointer-events: none;
      z-index: 1;
    }

    .circ-ticker__track {
      display: flex;
      gap: 2.5rem;
      width: max-content;
      animation: tickerMove 28s linear infinite;
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .circ-ticker__track span::after {
      content: '•';
      margin-left: 2.5rem;
      opacity: 0.5;
    }

    .circ-routes {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0.55;
      pointer-events: none;
    }

    .circ-route {
      fill: none;
      stroke: rgba(255, 255, 255, 0.28);
      stroke-width: 2;
      stroke-linecap: round;
      stroke-dasharray: 6 12;
    }

    .circ-route--a { opacity: 0.9; }
    .circ-route--b { opacity: 0.7; }
    .circ-route--c { opacity: 0.6; }

    .circ-node {
      fill: rgba(255, 255, 255, 0.7);
      stroke: rgba(255, 255, 255, 0.25);
      stroke-width: 5;
    }

    .circ-node--1,
    .circ-node--2,
    .circ-node--3,
    .circ-node--4,
    .circ-node--5,
    .circ-node--6 { opacity: 0.85; }

    .circ-floaters {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .circ-paper {
      position: absolute;
      width: 36px;
      height: 46px;
      border-radius: 3px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.22) 0 12%, transparent 12%),
        linear-gradient(180deg, transparent 22%, rgba(255,255,255,0.14) 22% 26%, transparent 26%),
        linear-gradient(180deg, transparent 34%, rgba(255,255,255,0.12) 34% 38%, transparent 38%),
        rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
      animation: paperDrift 16s ease-in-out infinite;
      opacity: 0.45;
    }

    .circ-paper--1 { top: 18%; left: 7%; --r: -10deg; animation-duration: 15s; }
    .circ-paper--2 { bottom: 20%; right: 9%; width: 30px; height: 40px; --r: 8deg; animation-duration: 18s; animation-delay: -6s; }

    .circ-icon {
      position: absolute;
      color: rgba(255, 255, 255, 0.4);
      font-size: 1.3rem;
      filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
      animation: iconDrift 12s ease-in-out infinite;
    }

    .circ-icon--1 { top: 18%; left: 14%; font-size: 1.45rem; animation-duration: 11s; } /* distribution truck */
    .circ-icon--2 { top: 30%; right: 12%; font-size: 1.35rem; animation-duration: 13s; animation-delay: -2s; } /* location */
    .circ-icon--3 { top: 58%; left: 9%; font-size: 1.25rem; animation-duration: 14s; animation-delay: -4s; } /* handling boxes */
    .circ-icon--4 { bottom: 26%; right: 14%; font-size: 1.3rem; animation-duration: 12s; animation-delay: -1s; } /* CRM handshake */
    .circ-icon--5 { top: 44%; left: 78%; font-size: 1.4rem; animation-duration: 10s; animation-delay: -5s; } /* quiz */
    .circ-icon--6 { bottom: 38%; left: 20%; font-size: 1.2rem; animation-duration: 15s; animation-delay: -3s; } /* route */
    .circ-icon--7 { top: 68%; right: 22%; font-size: 1.15rem; animation-duration: 16s; animation-delay: -7s; } /* warehouse */
    .circ-icon--8 { top: 12%; left: 42%; font-size: 1.2rem; animation-duration: 13.5s; animation-delay: -8s; } /* CRM users */

    .login-logo-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0.5rem;
      transform: translate(calc(var(--mx) * -8px), calc(var(--my) * -6px));
      transition: transform 0.25s ease-out;
      will-change: transform;
      animation: logoEntrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .login-logo {
      display: block;
      position: relative;
      z-index: 1;
      max-width: min(300px, 78vw);
      width: auto;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
      animation: logoPop 0.85s cubic-bezier(0.22, 1, 0.36, 1), brandPulse 4.5s ease-in-out 0.9s infinite;
      transition: filter 0.35s ease;
    }

    .login-user-icon {
      display: block;
      width: 88px;
      height: auto;
      margin: 0.35rem auto 0.5rem;
      filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
      animation: logoPop 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both, brandPulse 4.5s ease-in-out 1s infinite;
    }

    .login-main {
      width: 100%;
      max-width: 420px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.25rem;
      flex: 1 0 auto;
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.is-ready .login-main {
      opacity: 1;
      transform: translateY(0);
    }

    .login-brand {
      text-align: center;
      color: #fff;
    }

    .login-logo:hover {
      filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35)) brightness(1.05);
    }

    .login-tagline {
      margin: 0;
      font-size: 0.98rem;
      font-weight: 400;
      letter-spacing: 0.02em;
      color: rgba(255, 255, 255, 0.88);
      opacity: 0;
      animation: fadeUp 0.7s ease 0.25s forwards;
    }

    .tagline-text {
      display: inline-block;
      background: linear-gradient(90deg, rgba(255,255,255,0.55), #fff 40%, rgba(255,255,255,0.55));
      background-size: 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: textShimmer 3.5s ease-in-out infinite;
    }

    .login-panel {
      position: relative;
      overflow: hidden;
      width: 100%;
      background: var(--panel);
      border: 1px solid rgba(255, 255, 255, 0.55);
      border-radius: 22px;
      padding: 1.5rem 1.35rem 1.25rem;
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
      opacity: 0;
      transform: translateY(18px) scale(0.98);
      transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
                  box-shadow 0.3s ease;
      will-change: transform;
      animation: panelBreath 5s ease-in-out infinite;
      transform-style: preserve-3d;
    }

    body.is-ready .login-panel {
      opacity: 1;
      transform:
        perspective(900px)
        rotateX(calc(var(--my) * -4deg))
        rotateY(calc(var(--mx) * 5deg))
        translate(calc(var(--mx) * 4px), calc(var(--my) * 3px));
    }

    .panel-shine {
      position: absolute;
      top: 0;
      left: -60%;
      width: 45%;
      height: 100%;
      background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
      transform: skewX(-18deg);
      animation: panelSweep 4.5s ease-in-out infinite;
      pointer-events: none;
      z-index: 0;
    }

    .login-panel > *:not(.panel-shine) {
      position: relative;
      z-index: 1;
    }

    .login-panel:hover {
      box-shadow: 0 28px 70px rgba(180, 20, 22, 0.34);
    }

    .login-panel.shake {
      animation: shakeX 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    }

    .login-alert {
      border-radius: 12px;
      padding: 0.85rem 1rem;
      margin-bottom: 1rem;
      text-align: left;
      animation: alertIn 0.45s ease both;
      transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    }

    .login-alert.is-hiding {
      opacity: 0;
      transform: translateY(-8px);
      max-height: 0;
      margin-bottom: 0;
      padding-top: 0;
      padding-bottom: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .login-alert strong {
      display: block;
      font-size: 0.85rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 0.2rem;
    }

    .login-alert p {
      margin: 0;
      font-size: 0.92rem;
      line-height: 1.4;
    }

    .login-alert--error {
      background: #fff1f2;
      color: #9f1239;
      border: 1px solid #fecdd3;
    }

    .login-alert--success {
      background: #ecfdf5;
      color: #065f46;
      border: 1px solid #a7f3d0;
    }

    .anim-item {
      opacity: 0;
      transform: translateY(14px);
    }

    body.is-ready .anim-item {
      animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      animation-delay: calc(0.18s + (var(--i) * 0.08s));
    }

    .login-form .form-group {
      position: relative;
      margin-bottom: 1rem;
      width: 100%;
    }

    .login-label {
      display: block;
      margin-bottom: 0.4rem;
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
      transition: color 0.2s ease;
    }

    .login-field.is-focused + .login-label,
    .form-group:focus-within .login-label {
      color: var(--brand);
    }

    .login-field {
      position: relative;
    }

    .login-field .field-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--brand);
      font-size: 0.95rem;
      pointer-events: none;
      z-index: 2;
      transition: transform 0.25s ease, color 0.25s ease;
    }

    .login-field.is-focused .field-icon {
      transform: translateY(-50%) scale(1.12);
      color: var(--brand-deep);
      animation: iconBounce 0.45s ease;
    }

    .login-field.is-typing .field-icon {
      animation: iconNudge 0.18s ease;
    }

    .login-field.is-invalid .form-control {
      border-color: #be123c;
      animation: fieldPulse 0.35s ease;
    }

    .login-form .form-control {
      height: 52px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--field);
      color: var(--ink);
      font-size: 1rem;
      font-weight: 500;
      padding: 0.75rem 1rem 0.75rem 2.75rem;
      box-shadow: none;
      transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
    }

    .login-field--password .form-control {
      padding-right: 3.1rem;
    }

    .login-form .form-control:focus {
      background: #fff;
      border-color: var(--brand);
      box-shadow: 0 0 0 4px rgba(238, 32, 33, 0.14);
      outline: none;
      color: var(--ink);
      transform: translateY(-1px);
    }

    .login-form .form-control::placeholder {
      color: #9a858a;
      font-weight: 400;
    }

    .password-toggle {
      position: absolute;
      right: 0.45rem;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: #8a7378;
      cursor: pointer;
      z-index: 3;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s ease, background 0.2s ease, transform 0.25s ease;
    }

    .password-toggle:hover {
      color: var(--brand);
      background: rgba(238, 32, 33, 0.08);
    }

    .password-toggle:focus {
      outline: none;
      box-shadow: 0 0 0 3px rgba(238, 32, 33, 0.18);
    }

    .password-toggle.toggled {
      animation: togglePop 0.28s ease;
    }

    .password-toggle i {
      font-size: 1rem;
      transition: transform 0.25s ease;
    }

    .login-submit {
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin-top: 0.35rem;
      height: 52px;
      border: 0;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--brand-soft), var(--brand) 45%, var(--brand-deep));
      background-size: 160% 160%;
      color: #fff;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 12px 28px rgba(238, 32, 33, 0.35);
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
      animation: gradientMove 5s ease infinite, btnGlow 2.8s ease-in-out infinite;
    }

    .login-submit::after {
      content: '';
      position: absolute;
      top: 0;
      left: -70%;
      width: 40%;
      height: 100%;
      background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
      transform: skewX(-20deg);
      animation: btnShine 3.2s ease-in-out infinite;
    }

    .login-submit__text {
      position: relative;
      z-index: 1;
      transition: letter-spacing 0.25s ease, opacity 0.2s ease;
    }

    .login-submit:hover .login-submit__text {
      letter-spacing: 0.14em;
    }

    .login-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 32px rgba(238, 32, 33, 0.42);
      filter: brightness(1.03);
    }

    .login-submit:active {
      transform: translateY(0);
    }

    .login-submit.is-loading {
      pointer-events: none;
      opacity: 0.92;
    }

    .login-submit.is-loading .login-submit__text {
      opacity: 0;
    }

    .login-submit.is-loading .login-submit__loader {
      opacity: 1;
    }

    .login-submit__loader {
      position: absolute;
      width: 22px;
      height: 22px;
      border: 2.5px solid rgba(255, 255, 255, 0.35);
      border-top-color: #fff;
      border-radius: 50%;
      opacity: 0;
      animation: spin 0.7s linear infinite;
    }

    .login-submit .ripple {
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.45);
      transform: translate(-50%, -50%) scale(0);
      animation: rippleOut 0.6s ease-out forwards;
      pointer-events: none;
    }

    .login-links {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      margin-top: 1.15rem;
      text-align: center;
    }

    .login-links a {
      position: relative;
      color: var(--brand);
      font-size: 0.95rem;
      font-weight: 500;
      text-decoration: none;
      transition: color 0.2s ease, transform 0.2s ease;
      display: inline-block;
    }

    .login-links a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 100%;
      height: 1.5px;
      background: var(--brand);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s ease;
    }

    .login-links a:hover {
      color: var(--brand-deep);
      text-decoration: none;
      transform: translateY(-1px);
    }

    .login-links a:hover::after {
      transform: scaleX(1);
    }

    .login-footer {
      width: 100%;
      max-width: 820px;
      margin-top: 1.5rem;
      text-align: center;
      flex-shrink: 0;
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.8s ease 0.25s, transform 0.8s ease 0.25s;
    }

    body.is-ready .login-footer {
      opacity: 1;
      transform: translateY(0);
    }

    .login-footer-brands {
      display: block;
      width: 100%;
      max-width: 760px;
      height: auto;
      margin: 0 auto 0.65rem;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
      transition: transform 0.35s ease, box-shadow 0.35s ease;
      animation: footerFloat 5s ease-in-out infinite;
    }

    .login-footer-brands:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    }

    .login-copyright {
      color: rgba(255, 255, 255, 0.82);
      font-size: 0.85rem;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .login-copyright:hover {
      color: #fff;
      text-decoration: underline;
    }

    .invalid-feedback {
      display: block;
      width: 100%;
      margin: 0.35rem 0 0;
      font-size: 0.82rem;
      color: #be123c;
      text-align: left;
      animation: fadeUp 0.25s ease;
    }

    @keyframes riseIn {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(14px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes floatGlow {
      0%, 100% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-18px) scale(1.05); }
    }

    @keyframes brandPulse {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-4px); }
    }

    @keyframes logoEntrance {
      0% { opacity: 0; filter: blur(6px); }
      100% { opacity: 1; filter: blur(0); }
    }

    @keyframes logoPop {
      0% { transform: scale(0.82); }
      70% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }

    @keyframes orbFloat {
      0%, 100% { transform: translateY(0) translateX(0); opacity: 0.45; }
      50% { transform: translateY(-24px) translateX(10px); opacity: 0.9; }
    }

    @keyframes routeFlow {
      to { stroke-dashoffset: -240; }
    }

    @keyframes nodePulse {
      0%, 100% { opacity: 0.45; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.35); }
    }

    @keyframes paperDrift {
      0%, 100% { transform: translate(0, 0) rotate(var(--r, -8deg)); }
      50% { transform: translate(10px, -14px) rotate(var(--r, -8deg)); }
    }

    @keyframes iconDrift {
      0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
      50% { transform: translateY(-14px) rotate(5deg); opacity: 0.5; }
    }

    @keyframes scanSweep {
      0% { background-position: 0 -40%; }
      100% { background-position: 0 140%; }
    }

    @keyframes tickerMove {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    @keyframes footerFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-3px); }
    }

    @keyframes gridDrift {
      from { background-position: 0 0; }
      to { background-position: 48px 48px; }
    }

    @keyframes bgShift {
      from { filter: hue-rotate(0deg) saturate(1); }
      to { filter: hue-rotate(-4deg) saturate(1.05); }
    }

    @keyframes shakeX {
      10%, 90% { transform: translateX(-2px); }
      20%, 80% { transform: translateX(4px); }
      30%, 50%, 70% { transform: translateX(-7px); }
      40%, 60% { transform: translateX(7px); }
    }

    @keyframes fieldPulse {
      0% { box-shadow: 0 0 0 0 rgba(190, 18, 60, 0.25); }
      100% { box-shadow: 0 0 0 4px rgba(190, 18, 60, 0); }
    }

    @keyframes togglePop {
      0% { transform: translateY(-50%) scale(1); }
      50% { transform: translateY(-50%) scale(1.18); }
      100% { transform: translateY(-50%) scale(1); }
    }

    @keyframes gradientMove {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    @keyframes rippleOut {
      to {
        transform: translate(-50%, -50%) scale(28);
        opacity: 0;
      }
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @keyframes alertIn {
      from { opacity: 0; transform: translateY(-8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes waveRise {
      0%, 100% { transform: translateX(0) translateY(0); }
      50% { transform: translateX(-4%) translateY(-12px); }
    }

    @keyframes textShimmer {
      0%, 100% { background-position: 100% 0; }
      50% { background-position: 0 0; }
    }

    @keyframes panelSweep {
      0%, 55% { left: -60%; }
      100% { left: 130%; }
    }

    @keyframes panelBreath {
      0%, 100% { box-shadow: 0 24px 60px rgba(180, 20, 22, 0.28); }
      50% { box-shadow: 0 28px 72px rgba(180, 20, 22, 0.4); }
    }

    @keyframes btnShine {
      0%, 40% { left: -70%; }
      100% { left: 130%; }
    }

    @keyframes btnGlow {
      0%, 100% { box-shadow: 0 12px 28px rgba(238, 32, 33, 0.35); }
      50% { box-shadow: 0 14px 36px rgba(238, 32, 33, 0.55); }
    }

    @keyframes iconBounce {
      0% { transform: translateY(-50%) scale(1); }
      40% { transform: translateY(-58%) scale(1.2); }
      100% { transform: translateY(-50%) scale(1.12); }
    }

    @keyframes iconNudge {
      0% { transform: translateY(-50%) rotate(0deg); }
      50% { transform: translateY(-50%) rotate(-8deg) scale(1.08); }
      100% { transform: translateY(-50%) rotate(0deg); }
    }

    @media (max-width: 576px) {
      .login-shell {
        padding: 1.5rem 1rem 1rem;
      }

      .login-panel {
        padding: 1.25rem 1rem 1.1rem;
        border-radius: 18px;
      }

      .login-logo {
        max-width: min(260px, 82vw);
      }

      .login-user-icon {
        width: 72px;
      }

      .circ-ticker {
        display: none;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .login-main,
      .login-panel,
      .login-footer,
      .login-glow,
      .login-logo,
      .login-grid,
      .login-atmosphere,
      .login-tagline,
      .tagline-text,
      .anim-item,
      .login-submit,
      .login-submit::after,
      .panel-shine,
      .circ-node,
      .circ-paper,
      .circ-icon,
      .login-scan,
      .circ-ticker__track,
      .login-footer-brands {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
      }

      .tagline-text {
        color: #fff;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
      }
    }


/* OTP + agency extras for signup / forgot password */
.login-field--otp .form-control {
  padding-right: 3.1rem;
}

.login-field .otp-check {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  left: auto;
  pointer-events: none;
  z-index: 3;
  font-size: 1.1rem;
}

.login-field .otp-check_yes { color: #059669 !important; }
.login-field .otp-check_no { color: #be123c !important; }

.agencyCheckHolder {
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #f7f2f3;
  border: 1px solid var(--line);
  text-align: left;
}

.agencyCheckHolder label {
  color: var(--ink) !important;
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0.35rem 0;
  cursor: pointer;
  gap: 0.4rem;
}

.agencyCheckHolder input[type=radio] {
  accent-color: var(--brand);
  width: auto;
  height: auto;
  margin-right: 0.35rem;
}

input.login-submit,
button.login-submit {
  -webkit-appearance: none;
  appearance: none;
}

input.login-submit {
  text-align: center;
  line-height: 1;
}

.login-submit + .login-submit,
#pass_div .login-submit {
  margin-top: 0.75rem;
}

#pass_div {
  display: block;
  width: 100%;
}
