    :root {
      --bg: #f7f9fc;
      --bg-soft: #eef5fb;
      --ios-bg: #eef5fb;
      --grid-line: rgba(22, 102, 168, 0.22);
      --grid-opacity: 0.44;
      --card: rgba(255, 255, 255, 0.86);
      --card-border: rgba(22, 102, 168, 0.12);
      --text: #172033;
      --muted: #697386;
      --link-text: #667085;
      --placeholder: #98a2b3;
      --primary: #1666a8;
      --primary-hover: #12578f;
      --primary-soft: rgba(22, 102, 168, 0.10);
      --input-bg: rgba(255, 255, 255, 0.82);
      --input-border: #dbe4ef;
      --input-focus: rgba(22, 102, 168, 0.18);
      --danger-bg: #fff1f2;
      --danger-text: #b42318;
      --danger-border: #fecdd3;
      --success-bg: #ecfdf3;
      --success-text: #027a48;
      --success-border: #bbf7d0;
      --shadow: 0 24px 70px rgba(16, 24, 40, 0.10);
      --radius-lg: 28px;
      --radius-md: 16px;
      --ease: cubic-bezier(.2, .8, .2, 1);
    }

    html.theme-dark {
      --bg: #101623;
      --bg-soft: #172033;
      --ios-bg: #172033;
      --grid-line: rgba(255, 255, 255, 0.18);
      --grid-opacity: 0.23;
      --card: rgba(26, 35, 50, 0.78);
      --card-border: rgba(255, 255, 255, 0.10);
      --text: #f6f8fb;
      --muted: #aab4c5;
      --link-text: #aab4c5;
      --placeholder: #7f8aa1;
      --primary: #5aa9ee;
      --primary-hover: #7abcff;
      --primary-soft: rgba(90, 169, 238, 0.14);
      --input-bg: rgba(13, 19, 31, 0.42);
      --input-border: rgba(255, 255, 255, 0.13);
      --input-focus: rgba(90, 169, 238, 0.22);
      --danger-bg: rgba(127, 29, 29, 0.22);
      --danger-text: #fecaca;
      --danger-border: rgba(248, 113, 113, 0.28);
      --success-bg: rgba(20, 83, 45, 0.24);
      --success-text: #bbf7d0;
      --success-border: rgba(74, 222, 128, 0.25);
      --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      min-height: 100%;
      margin: 0;
      background: var(--ios-bg);
    }

    body {
      position: relative;
      isolation: isolate;
      color: var(--text);
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      display: grid;
      place-items: center;
      min-height: 100dvh;
      padding: 32px 18px;
      overflow-x: hidden;
      transition: background-color .25s ease, color .25s ease;
    }

    /*
      Camada de cor do design original.
      Ela não começa no primeiro pixel da tela: as bordas ficam com a mesma cor sólida
      usada pelo body/html e pelo theme-color do iOS, evitando a linha de divisão.
    */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image:
        radial-gradient(circle at top left, rgba(22, 102, 168, 0.13), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(90, 169, 238, 0.14), transparent 30rem),
        linear-gradient(135deg, var(--bg), var(--bg-soft));
      -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(env(safe-area-inset-top, 0px) + 56px),
        black calc(env(safe-area-inset-top, 0px) + 160px),
        black calc(100% - env(safe-area-inset-bottom, 0px) - 160px),
        transparent calc(100% - env(safe-area-inset-bottom, 0px) - 56px),
        transparent 100%
      );
      mask-image: linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(env(safe-area-inset-top, 0px) + 56px),
        black calc(env(safe-area-inset-top, 0px) + 160px),
        black calc(100% - env(safe-area-inset-bottom, 0px) - 160px),
        transparent calc(100% - env(safe-area-inset-bottom, 0px) - 56px),
        transparent 100%
      );
    }

    /* Grade com mais respiro, mais área útil e fade suave no topo/rodapé. */
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
      background-size: 54px 54px;
      opacity: var(--grid-opacity);
      -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(env(safe-area-inset-top, 0px) + 12px),
        rgba(0, 0, 0, 0.34) calc(env(safe-area-inset-top, 0px) + 44px),
        black calc(env(safe-area-inset-top, 0px) + 112px),
        black calc(100% - env(safe-area-inset-bottom, 0px) - 112px),
        rgba(0, 0, 0, 0.34) calc(100% - env(safe-area-inset-bottom, 0px) - 44px),
        transparent calc(100% - env(safe-area-inset-bottom, 0px) - 12px),
        transparent 100%
      );
      mask-image: linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(env(safe-area-inset-top, 0px) + 12px),
        rgba(0, 0, 0, 0.34) calc(env(safe-area-inset-top, 0px) + 44px),
        black calc(env(safe-area-inset-top, 0px) + 112px),
        black calc(100% - env(safe-area-inset-bottom, 0px) - 112px),
        rgba(0, 0, 0, 0.34) calc(100% - env(safe-area-inset-bottom, 0px) - 44px),
        transparent calc(100% - env(safe-area-inset-bottom, 0px) - 12px),
        transparent 100%
      );
    }

    html.theme-dark body::before {
      background-image:
        radial-gradient(circle at top left, rgba(90, 169, 238, 0.16), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(22, 102, 168, 0.20), transparent 34rem),
        linear-gradient(135deg, var(--bg), var(--bg-soft));
    }

    a {
      color: inherit;
    }

    .theme-toggle-wrap {
      position: fixed;
      top: calc(env(safe-area-inset-top, 0px) + 22px);
      right: 22px;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .dark-mode-toggle {
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      aspect-ratio: 1 / 1;
      margin-top: 0;
      padding: 0;
      border: 1px solid var(--card-border);
      border-radius: 50%;
      background: var(--card);
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 44px;
      line-height: 0;
      appearance: none;
      -webkit-appearance: none;
      box-shadow: none;
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      transition: transform .2s var(--ease), border-color .2s ease, color .2s ease, background .2s ease;
    }

    .dark-mode-toggle:hover {
      transform: translateY(-1px);
      color: var(--primary);
      border-color: var(--primary-soft);
      box-shadow: none;
      filter: none;
    }

    .dark-mode-toggle:focus-visible {
      outline: 4px solid var(--input-focus);
      outline-offset: 3px;
    }

    .dark-mode-toggle .icon2 {
      width: 21px;
      height: 21px;
      flex: 0 0 21px;
      fill: currentColor;
      display: block;
      margin: 0;
      transform: translateZ(0);
    }

    #light-icon,
    #recaptcha-fallback-container-forgot,
    #recaptcha-fallback-container-reset {
      display: none;
    }

    .flash-js-container {
      position: fixed;
      top: calc(env(safe-area-inset-top, 0px) + 20px);
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      width: min(90%, 400px);
    }

    .flash-js {
      padding: 12px 16px;
      border-radius: 14px;
      font-weight: 600;
      font-size: 13px;
      margin-bottom: 10px;
      text-align: center;
      animation: entrance .3s var(--ease) both;
      box-shadow: 0 14px 34px rgba(16, 24, 40, 0.12);
    }

    .flash-js.sucesso {
      background: var(--success-bg);
      color: var(--success-text);
      border: 1px solid var(--success-border);
    }

    .flash-js.erro {
      background: var(--danger-bg);
      color: var(--danger-text);
      border: 1px solid var(--danger-border);
    }

    .wrapper {
      position: relative;
      top: 30px;
      z-index: 2;
      width: min(100%, 380px);
      animation: entrance .55s var(--ease) both;
    }

    .logo-container {
      text-align: center;
      margin-bottom: 22px;
    }

    .logo-container a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    .logo-container img {
      max-width: 166px;
      height: auto;
      display: block;
      border-radius: 14px;
      filter: drop-shadow(0 12px 18px rgba(16, 24, 40, 0.08));
    }

    .card {
      position: relative;
      width: 100%;
      padding: 34px 30px 30px;
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      background: var(--card);
      box-shadow: var(--shadow);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
      overflow: hidden;
      transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease;
    }

    .card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--primary), transparent);
      opacity: .75;
    }

    .card:hover {
      transform: translateY(-2px);
      border-color: rgba(22, 102, 168, 0.20);
    }

    .card-header {
      text-align: center;
      margin-bottom: 24px;
    }

    h2 {
      margin: 0;
      color: var(--text);
      font-size: 24px;
      line-height: 1.15;
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    .subtitle {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .flash {
      margin-bottom: 18px;
      padding: 12px 14px;
      border: 1px solid var(--danger-border);
      border-radius: 14px;
      background: var(--danger-bg);
      color: var(--danger-text);
      font-size: 13px;
      line-height: 1.45;
      text-align: center;
    }

    .success {
      background: var(--success-bg);
      color: var(--success-text);
      border-color: var(--success-border);
    }

    .field {
      position: relative;
      margin-bottom: 13px;
    }

    input {
      width: 100%;
      min-height: 50px;
      padding: 14px 15px;
      border: 1px solid var(--input-border);
      border-radius: var(--radius-md);
      background: var(--input-bg);
      color: var(--text);
      font: inherit;
      font-size: 16px;
      line-height: 1.2;
      outline: none;
      transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s var(--ease);
    }

    input:hover {
      border-color: color-mix(in srgb, var(--primary) 32%, var(--input-border));
    }

    input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px var(--input-focus);
      background: color-mix(in srgb, var(--input-bg) 84%, white);
    }

    html.theme-dark input:focus {
      background: rgba(13, 19, 31, 0.62);
    }

    input::placeholder {
      color: var(--placeholder);
      opacity: 1;
      font-size: 14px;
    }

    input[type="hidden"] {
      display: none;
    }

    button {
      width: 100%;
      min-height: 50px;
      margin-top: 3px;
      padding: 14px 16px;
      border: 0;
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, var(--primary), var(--primary-hover));
      color: #ffffff;
      font: inherit;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: -0.01em;
      cursor: pointer;
      box-shadow: 0 14px 28px rgba(22, 102, 168, 0.22);
      transition: transform .2s var(--ease), box-shadow .2s ease, filter .2s ease;
    }

    button:hover {
      transform: translateY(-1px);
      box-shadow: 0 18px 34px rgba(22, 102, 168, 0.28);
      filter: saturate(1.06);
    }

    button:active {
      transform: translateY(0);
    }

    button:focus-visible {
      outline: 4px solid var(--input-focus);
      outline-offset: 3px;
    }

    button:disabled {
      cursor: wait;
      opacity: .82;
      transform: none;
    }

    #btn-forgot,
    #btn-reset {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      position: relative;
    }

    #btn-forgot .spinner,
    #btn-reset .spinner {
      display: none;
    }

    #btn-forgot.is-loading .btn-text,
    #btn-reset.is-loading .btn-text {
      display: none;
    }

    #btn-forgot.is-loading .spinner,
    #btn-reset.is-loading .spinner {
      display: inline-block;
      width: 17px;
      height: 17px;
      border: 3px solid currentColor;
      border-top-color: transparent;
      border-radius: 50%;
      animation: spin .8s linear infinite;
    }

    .link {
      margin-top: 18px;
      text-align: center;
      color: var(--link-text);
      font-size: 13px;
      line-height: 1.5;
    }

    .link a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 700;
      transition: color .2s ease, opacity .2s ease;
    }

    .link a:hover {
      color: var(--primary-hover);
    }

    .link a:focus-visible {
      outline: 3px solid var(--input-focus);
      outline-offset: 3px;
      border-radius: 8px;
    }

    @keyframes entrance {
      from {
        opacity: 0;
        transform: translateY(16px) scale(.985);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

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



    /* Desktop premium: um bloco único com painel visual + formulário. Mobile permanece igual ao card padrão. */
    .desktop-showcase {
      display: none;
    }

    @media (min-width: 901px) {
      body {
        padding: 24px 22px;
      }

      .wrapper {
        top: 0;
        width: min(100%, 980px);
      }

      .desktop-shell {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
        gap: 0;
        width: min(100%, 980px);
        margin-inline: auto;
        padding: 7px;
        border: 1px solid var(--card-border);
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 28px 80px rgba(16, 24, 40, 0.14);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        overflow: hidden;
        transform: translateY(24px) scale(0.90);
        transform-origin: center;
      }

      html.theme-dark .desktop-shell {
        background: rgba(26, 35, 50, 0.72);
        border-color: rgba(255, 255, 255, 0.10);
        box-shadow: 0 34px 90px rgba(0, 0, 0, 0.30);
      }

      .desktop-showcase {
        position: relative;
        min-height: 550px;
        padding: 28px;
        border-radius: 24px;
        background:
          radial-gradient(circle at 16% 78%, rgba(138, 213, 245, 0.55), transparent 18%),
          radial-gradient(circle at 22% 22%, rgba(0, 98, 170, 0.92), transparent 24%),
          radial-gradient(circle at 72% 12%, rgba(76, 183, 231, 0.34), transparent 22%),
          radial-gradient(circle at 55% 60%, rgba(0, 80, 143, 0.42), transparent 24%),
          linear-gradient(135deg, #00508f 0%, #006db8 42%, #4cb7e7 100%);
        color: #ffffff;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 12px;
      }

      html.theme-dark .desktop-showcase {
        background:
          radial-gradient(circle at 16% 78%, rgba(138, 213, 245, 0.34), transparent 18%),
          radial-gradient(circle at 22% 22%, rgba(0, 98, 170, 0.80), transparent 24%),
          radial-gradient(circle at 72% 12%, rgba(76, 183, 231, 0.26), transparent 22%),
          radial-gradient(circle at 55% 60%, rgba(0, 80, 143, 0.32), transparent 24%),
          linear-gradient(135deg, #003b69 0%, #00508f 42%, #2d98d6 100%);
      }

      .desktop-showcase::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
          linear-gradient(120deg, rgba(255,255,255,0.12), transparent 24%),
          linear-gradient(180deg, rgba(255,255,255,0.10), transparent 18%);
        pointer-events: none;
      }

      .desktop-showcase::after {
        content: "";
        position: absolute;
        inset: auto auto -14% -10%;
        width: 290px;
        height: 290px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(111, 201, 240, 0.36), transparent 68%);
        filter: blur(14px);
        pointer-events: none;
      }

      .showcase-top {
        position: relative;
        z-index: 2;
      }

      .desktop-showcase h1 {
        max-width: 370px;
        margin: 26px 0 0;
        color: #ffffff;
        font-size: clamp(30px, 3vw, 42px);
        line-height: 0.96;
        font-weight: 800;
        letter-spacing: -0.055em;
      }

      .desktop-showcase p {
        max-width: 350px;
        margin: 10px 0 0;
        color: rgba(255, 255, 255, 0.74);
        font-size: 13px;
        line-height: 1.6;
      }

      .reset-art-composition {
        position: relative;
        z-index: 2;
        width: min(100%, 360px);
        height: 259px;
        margin: 42px auto 0;
        transform: scale(0.9075);
        transform-origin: center top;
      }

      .reset-ambient {
        position: absolute;
        border-radius: 999px;
        pointer-events: none;
        z-index: 0;
      }

      .reset-ambient-one {
        width: 250px;
        height: 250px;
        left: 50%;
        top: 42px;
        transform: translateX(-50%);
        background: radial-gradient(circle, rgba(138, 213, 245, 0.34), transparent 68%);
        filter: blur(16px);
      }

      .reset-ambient-two {
        width: 290px;
        height: 82px;
        left: 50%;
        bottom: 2px;
        transform: translateX(-50%);
        background: radial-gradient(circle, rgba(76, 183, 231, 0.30), transparent 72%);
        filter: blur(18px);
        opacity: 0.78;
      }

      .reset-flow-card {
        position: absolute;
        left: 50%;
        top: 54%;
        z-index: 2;
        width: 286px;
        min-height: 250px;
        padding: 18px;
        transform: translate(-50%, -50%);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 28px;
        background:
          linear-gradient(180deg, rgba(138, 213, 245, 0.18), rgba(0, 98, 170, 0.10)),
          rgba(255, 255, 255, 0.08);
        box-shadow:
          0 28px 54px rgba(0, 58, 102, 0.28),
          inset 0 1px 0 rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
      }

      .reset-flow-topbar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 18px;
      }

      .reset-window-dots {
        display: flex;
        gap: 6px;
      }

      .reset-window-dots span {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
      }

      .reset-lock-orb {
        position: relative;
        width: 76px;
        height: 76px;
        margin: 0 auto 18px;
        display: grid;
        place-items: center;
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(138, 213, 245, 0.40), rgba(0, 98, 170, 0.18));
        border: 1px solid rgba(138, 213, 245, 0.18);
        box-shadow:
          0 18px 32px rgba(0, 58, 102, 0.22),
          0 0 0 10px rgba(111, 201, 240, 0.06);
      }

      .reset-lock-orb svg {
        width: 36px;
        height: 36px;
        fill: #ffffff;
        filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22));
      }

      .reset-progress-track {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin-bottom: 18px;
      }

      .reset-progress-dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: rgba(255,255,255,0.28);
      }

      .reset-progress-dot.active {
        width: 34px;
        background: rgba(255,255,255,0.88);
      }

      .reset-preview-lines {
        display: grid;
        gap: 9px;
      }

      .reset-preview-line {
        height: 11px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
      }

      .reset-preview-line:nth-child(1) { width: 78%; }
      .reset-preview-line:nth-child(2) { width: 56%; }
      .reset-preview-line:nth-child(3) {
        width: 100%;
        height: 34px;
        margin-top: 6px;
        background: linear-gradient(135deg, rgba(138, 213, 245, 0.92), rgba(76, 183, 231, 0.56));
        box-shadow: 0 12px 24px rgba(0, 58, 102, 0.16);
      }

      .reset-code-card,
      .reset-mail-card {
        position: absolute;
        z-index: 3;
        border: 1px solid rgba(138, 213, 245, 0.18);
        border-radius: 18px;
        background: rgba(76, 183, 231, 0.14);
        box-shadow:
          0 18px 40px rgba(0, 58, 102, 0.18),
          inset 0 1px 0 rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
      }

      .reset-code-card {
        top: 22px;
        right: -24px;
        width: 150px;
        padding: 12px;
      }

      .reset-code-card strong {
        display: block;
        color: rgba(255, 255, 255, 0.96);
        font-size: 11.8px;
        line-height: 1.25;
      }

      .reset-code-pills {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        margin-top: 10px;
      }

      .reset-code-pills span {
        height: 26px;
        border-radius: 9px;
        background: rgba(111, 201, 240, 0.24);
        display: grid;
        place-items: center;
        color: #ffffff;
        font-size: 11px;
        font-weight: 800;
      }

      .reset-mail-card {
        left: -24px;
        bottom: 8px;
        width: 154px;
        min-height: 58px;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .reset-mail-card svg {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        fill: rgba(255, 255, 255, 0.96);
      }

      .reset-mail-card strong {
        display: block;
        color: rgba(255, 255, 255, 0.96);
        font-size: 11.8px;
        line-height: 1.2;
      }

      .reset-mail-card span {
        display: block;
        margin-top: 3px;
        color: rgba(255, 255, 255, 0.68);
        font-size: 10.4px;
        line-height: 1.25;
      }

      .showcase-visual {
        position: absolute;
        inset: 0;
        z-index: 0;
        min-height: 0;
        margin: 0;
        overflow: hidden;
        pointer-events: none;
      }

      .showcase-wave-svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
      }

      .wave {
        transform-box: fill-box;
        transform-origin: center;
      }

      .wave-top {
        fill: rgba(0, 98, 170, 0.72);
      }

      .wave-mid {
        fill: rgba(0, 80, 143, 0.76);
      }

      .wave-mid-soft {
        fill: rgba(76, 183, 231, 0.30);
      }

      .wave-bottom-left {
        fill: rgba(111, 201, 240, 0.34);
      }

      .wave-bottom-right {
        fill: rgba(0, 98, 170, 0.40);
      }

      html.theme-dark .wave-top {
        fill: rgba(0, 80, 143, 0.70);
      }

      html.theme-dark .wave-mid {
        fill: rgba(0, 62, 110, 0.76);
      }

      html.theme-dark .wave-mid-soft {
        fill: rgba(76, 183, 231, 0.24);
      }

      html.theme-dark .wave-bottom-left {
        fill: rgba(111, 201, 240, 0.26);
      }

      html.theme-dark .wave-bottom-right {
        fill: rgba(0, 98, 170, 0.34);
      }

      .showcase-footer-note {
        position: absolute;
        right: 18px;
        z-index: 2;
        bottom: 16px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.075em;
        line-height: 1;
        text-align: right;
        text-transform: uppercase;
        pointer-events: none;
        text-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
      }

      .auth-panel {
        min-width: 0;
        min-height: 550px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 30px 38px;
      }

      .auth-panel .logo-container {
        text-align: left;
        margin-left: -4px;
      }

      .auth-panel .logo-container img {
        max-width: 152px;
      }

      .auth-panel .card {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: visible;
      }

      .auth-panel .card::before {
        display: none;
      }

      .auth-panel .card:hover {
        transform: none;
        border-color: transparent;
      }

      .auth-panel .card-header {
        text-align: left;
        margin-bottom: 22px;
      }

      .auth-panel h2 {
        font-size: 32px;
        line-height: 1.05;
        letter-spacing: -0.055em;
      }

      .auth-panel .subtitle {
        max-width: 320px;
        font-size: 13.5px;
      }

    }

    @media (min-width: 901px) and (max-height: 680px) {
      .desktop-shell {
        transform: translateY(18px) scale(0.86);
      }
    }

    @media (max-width: 900px) {
      /* Mobile alinhado ao design da página de login. */

      .wrapper {
        top: 18px;
        width: min(100%, 390px);
      }

      .card {
        padding: 0 18px 24px;
        border: 1px solid rgba(61, 164, 214, 0.17);
        border-radius: 30px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.98));
        box-shadow:
          0 28px 74px rgba(16, 24, 40, 0.12),
          0 18px 32px rgba(61, 164, 214, 0.09);
        overflow: hidden;
        isolation: isolate;
      }

      .card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 132px;
        display: block;
        background:
          radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 22%),
          radial-gradient(circle at 88% 14%, rgba(163, 220, 245, 0.34), transparent 27%),
          radial-gradient(circle at 74% 80%, rgba(61, 164, 214, 0.22), transparent 32%),
          linear-gradient(135deg, #0062a8 0%, #258bc8 50%, #72c8ed 100%);
        opacity: 1;
        z-index: 0;
      }

      .card::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 94px;
        width: 144%;
        height: 118px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(249, 252, 255, 0.985));
        border-radius: 50%;
        z-index: 0;
      }

      .card > * {
        position: relative;
        z-index: 1;
      }

      .card-header {
        position: relative;
        min-height: 122px;
        margin: 0 0 10px;
        padding: 24px 6px 18px;
        text-align: left;
        background: transparent;
        overflow: visible;
      }

      .card-header::before {
        content: "";
        position: absolute;
        width: 210px;
        height: 210px;
        right: -94px;
        top: -104px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.04);
        pointer-events: none;
      }

      .card-header h2 {
        max-width: 220px;
        color: #ffffff;
        font-size: 24px;
        line-height: 1.02;
        letter-spacing: -0.055em;
      }

      .card-header .subtitle {
        max-width: 230px;
        margin-top: 8px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 13px;
      }

      #form-forgot,
      #form-redefinir {
        margin-top: 0;
        padding: 0 2px 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      .field {
        margin-bottom: 14px;
      }

      input {
        min-height: 51px;
        border-color: rgba(61, 164, 214, 0.18);
        background:
          linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,249,255,0.98));
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.9),
          0 8px 18px rgba(61, 164, 214, 0.05);
      }

      input:hover {
        border-color: rgba(61, 164, 214, 0.34);
      }

      input:focus {
        border-color: #258bc8;
        background: #ffffff;
        box-shadow:
          0 0 0 4px rgba(61, 164, 214, 0.15),
          0 10px 20px rgba(61, 164, 214, 0.08);
      }

      #btn-forgot,
      #btn-reset {
        min-height: 52px;
        margin-top: 4px;
        border-radius: 17px;
        background: linear-gradient(135deg, #0062a8 0%, #1e82bc 56%, #5fbbe3 100%);
        box-shadow:
          0 8px 16px rgba(61, 164, 214, 0.15),
          inset 0 1px 0 rgba(255, 255, 255, 0.14);
      }

      html.theme-dark #btn-forgot,
      html.theme-dark #btn-reset {
        box-shadow:
          0 16px 30px rgba(61, 164, 214, 0.22),
          inset 0 1px 0 rgba(255, 255, 255, 0.18);
      }

      .link {
        margin-top: 17px;
        color: var(--link-text);
      }

      .link a {
        color: #1e82bc;
      }

      html.theme-dark .card {
        border-color: rgba(90, 169, 238, 0.16);
        background: linear-gradient(180deg, #1a2332 0%, #141c2a 100%);
        box-shadow:
          0 30px 82px rgba(0, 0, 0, 0.34),
          0 16px 34px rgba(90, 169, 238, 0.08);
      }

      html.theme-dark .card::before {
        background:
          radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.14), transparent 22%),
          radial-gradient(circle at 88% 14%, rgba(163, 220, 245, 0.23), transparent 27%),
          radial-gradient(circle at 74% 80%, rgba(61, 164, 214, 0.18), transparent 32%),
          linear-gradient(135deg, #004a84 0%, #258bc8 52%, #5fbbe3 100%);
      }

      html.theme-dark .card::after {
        background: linear-gradient(180deg, #1a2332 0%, #141c2a 100%);
      }

      html.theme-dark input {
        background: rgba(13, 19, 31, 0.58);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
      }

      html.theme-dark input:hover {
        border-color: rgba(90, 169, 238, 0.24);
      }

      html.theme-dark input:focus {
        background: rgba(13, 19, 31, 0.72);
        box-shadow: 0 0 0 4px rgba(90, 169, 238, 0.16);
      }
    }

    @media (max-width: 480px) {
      body {
        padding: 28px 16px;
        place-items: start center;
        padding-top: 92px;
      }

      .theme-toggle-wrap {
        top: calc(env(safe-area-inset-top, 0px) + 16px);
        right: 16px;
      }

      .dark-mode-toggle {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        flex-basis: 42px;
      }

      .wrapper {
        top: 22px;
        width: min(100%, 340px);
      }

      .logo-container {
        margin-bottom: 18px;
      }

      .logo-container img {
        max-width: 152px;
      }

      .card {
        padding: 0 16px 22px;
        border-radius: 26px;
      }

      .card::before {
        inset: 0 0 auto 0;
        height: 120px;
        border-radius: 0;
      }

      .card::after {
        top: 84px;
        width: 148%;
        height: 104px;
      }

      .card-header {
        min-height: 104px;
        margin: 0 0 8px;
        padding: 20px 6px 14px;
      }

      .card-header h2 {
        font-size: 24px;
      }

      .subtitle {
        font-size: 13px;
      }

      input,
      button {
        min-height: 48px;
      }

      button {
        font-size: 16px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: .01ms;
        animation-iteration-count: 1;
        scroll-behavior: auto;
        transition-duration: .01ms;
      }
    }
  
