.auth-flow-page {
  --auth-flow-bg: #f2f5fb;
  --auth-flow-text: #101d31;
  --auth-flow-muted: #62738d;
  --auth-flow-card: rgb(255 255 255 / 91%);
  --auth-flow-border: #d9e3f0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: auto;
  padding: clamp(18px, 4vh, 50px) 20px;
  color: var(--auth-flow-text);
  background: var(--auth-flow-bg);
}
html[data-theme="dark"] .auth-flow-page {
  --auth-flow-bg: #081724;
  --auth-flow-text: #f3f7fc;
  --auth-flow-muted: #a9b8cc;
  --auth-flow-card: rgb(11 27 42 / 94%);
  --auth-flow-border: #304257;
}
.auth-flow-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: url("../img/login-claro-desktop.png");
  background-position: center;
  background-size: cover;
  pointer-events: none;
}
html[data-theme="dark"] .auth-flow-page::before { background-image: url("../img/login-escuro-desktop.png"); }
.auth-flow-card {
  width: min(100%, 680px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--auth-flow-border);
  border-radius: 22px;
  color: var(--auth-flow-text);
  background: var(--auth-flow-card);
  box-shadow: 0 18px 60px rgb(24 48 85 / 13%);
  backdrop-filter: blur(16px);
}
.auth-password-card { width: min(100%, 870px); }
.auth-expired-card { width: min(100%, 770px); text-align: center; }
.auth-flow-logo { display: grid; place-items: center; margin: 0 auto 30px; text-decoration: none; }
.auth-flow-logo img { width: clamp(180px, 25vw, 280px); max-height: 82px; object-fit: contain; }
.auth-flow-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 24px; }
.auth-flow-heading-icon { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; border-radius: 15px; color: #f56612; background: #fff1e7; font-size: 1.8rem; }
.auth-flow-heading > div { min-width: 0; padding-left: 17px; border-left: 1px solid var(--auth-flow-border); }
.auth-flow-heading h1 { margin: 0 0 4px; color: var(--auth-flow-text); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 780; letter-spacing: -.035em; }
.auth-flow-heading p { margin: 0; color: var(--auth-flow-muted); font-size: .95rem; line-height: 1.5; }
.auth-flow-form { display: grid; gap: 9px; }
.auth-flow-form > label { margin-top: 3px; color: var(--auth-flow-text); font-size: .9rem; font-weight: 720; }
.auth-flow-input { min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid var(--auth-flow-border); border-radius: 10px; background: rgb(255 255 255 / 62%); }
html[data-theme="dark"] .auth-flow-input { background: rgb(4 18 29 / 60%); }
.auth-flow-input > i { color: #7588a3; font-size: 1rem; }
.auth-flow-input input { width: 100%; min-width: 0; height: 46px; border: 0; outline: 0; color: var(--auth-flow-text); background: transparent; font: inherit; font-size: .88rem; }
.auth-flow-input input::placeholder { color: #8190a5; }
.auth-flow-input:focus-within { border-color: #ff741f; box-shadow: 0 0 0 3px rgb(255 116 31 / 12%); }
.auth-flow-password { padding-right: 8px; }
.auth-flow-password button { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #71819a; background: transparent; cursor: pointer; font-size: 1rem; }
.auth-flow-password button:hover { color: #f16617; background: rgb(255 116 31 / 10%); }
.auth-flow-primary { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 11px 16px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(100deg, #ff8a00, #ff4d00); box-shadow: 0 8px 19px rgb(255 91 0 / 22%); cursor: pointer; font: inherit; font-size: .92rem; font-weight: 750; text-decoration: none; }
.auth-flow-primary:hover { color: #fff; filter: brightness(.97); transform: translateY(-1px); }
.auth-flow-expiry-note { display: flex; align-items: center; gap: 11px; margin: 15px 0 0; padding: 13px 15px; border: 1px solid #dce8fb; border-radius: 10px; color: #3f587b; background: #eef4ff; font-size: .78rem; line-height: 1.5; }
.auth-flow-expiry-note i { flex: 0 0 auto; color: #2563eb; font-size: 1.1rem; }
html[data-theme="dark"] .auth-flow-expiry-note { color: #c7d8ec; border-color: #284563; background: #13283d; }
.auth-flow-back { display: flex; width: fit-content; align-items: center; justify-content: center; gap: 8px; margin: 19px auto 0; color: #1670d8; font-size: .84rem; font-weight: 700; text-decoration: none; }
html[data-theme="dark"] .auth-flow-back { color: #78b2ff; }
.auth-flow-back:hover { text-decoration: underline; }
.auth-flow-footer { display: grid; justify-items: center; gap: 4px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--auth-flow-border); color: var(--auth-flow-muted); font-size: .75rem; }
.auth-flow-footer strong { color: var(--auth-flow-text); font-size: 1.2rem; letter-spacing: .05em; }
.auth-flow-alert { margin-bottom: 14px; padding: 11px 13px; border: 1px solid #c8ecd4; border-radius: 9px; color: #176334; background: #effbf3; font-size: .8rem; line-height: 1.45; }
.auth-flow-alert.error { color: #a22323; border-color: #f4caca; background: #fff3f3; }
html[data-theme="dark"] .auth-flow-alert { color: #bbf7d0; border-color: #205b38; background: #102b20; }
html[data-theme="dark"] .auth-flow-alert.error { color: #fecaca; border-color: #6b2b37; background: #321b22; }
.password-requirements { margin: 8px 0 2px; padding: 14px 16px; border: 1px solid #d8ece1; border-radius: 11px; background: rgb(245 251 247 / 88%); }
.password-requirements h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; color: var(--auth-flow-text); font-size: .88rem; }
.password-requirements h2 i { color: #22a447; font-size: 1.05rem; }
.password-requirements ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.password-requirements li { display: flex; align-items: center; gap: 8px; color: var(--auth-flow-muted); font-size: .78rem; }
.password-requirements li i { color: #aeb9c7; font-size: .9rem; }
.password-requirements li.is-met { color: #16833b; }
.password-requirements li.is-met i { color: #22a447; }
html[data-theme="dark"] .password-requirements { border-color: #28513a; background: rgb(17 43 33 / 78%); }
html[data-theme="dark"] .password-requirements li.is-met { color: #a7e6b9; }
.expired-illustration { position: relative; width: 190px; height: 148px; display: grid; place-items: center; margin: 0 auto 12px; }
.expired-illustration::before { position: absolute; inset: 12px 0 0; border-radius: 50%; background: radial-gradient(ellipse, rgb(255 122 36 / 18%), transparent 68%); content: ""; }
.expired-envelope { position: relative; width: 112px; height: 80px; display: grid; place-items: center; border: 1px solid #d4dfef; border-radius: 14px; color: #f97316; background: linear-gradient(150deg, #fff, #e9f0fb); box-shadow: 0 12px 30px rgb(25 47 81 / 12%); font-size: 2.9rem; }
.expired-envelope .bi-link-45deg { position: absolute; top: 11px; left: 39px; color: #ff741f; font-size: 2.3rem; }
.expired-clock { position: absolute; right: 24px; bottom: 5px; width: 62px; height: 62px; display: grid; place-items: center; border: 5px solid var(--auth-flow-card); border-radius: 50%; color: #fff; background: #ef3d35; font-size: 1.85rem; }
.auth-expired-copy h1 { margin: 0 0 8px; color: #0c2c69; font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; }
.auth-expired-copy h2 { margin: 0 0 14px; color: var(--auth-flow-text); font-size: 1rem; }
.auth-expired-copy p { margin: 0; color: var(--auth-flow-muted); font-size: .94rem; line-height: 1.6; }
.auth-flow-link-button, .auth-flow-back-button { width: min(100%, 430px); margin-inline: auto; }
.auth-flow-back-button { min-height: 46px; border: 1px solid #bdd5fb; border-radius: 999px; background: rgb(239 246 255 / 65%); }
html[data-theme="dark"] .auth-flow-back-button { border-color: #345b88; background: rgb(19 40 61 / 72%); }
html[data-theme="dark"] .auth-expired-copy h1 { color: #d8e7ff; }
@media (max-width: 620px) {
  .auth-flow-page { padding: 14px; }
  .auth-flow-card { padding: 24px 19px; border-radius: 17px; }
  .auth-flow-page::before { background-image: url("../img/login-claro-mobile.png"); }
  html[data-theme="dark"] .auth-flow-page::before { background-image: url("../img/login-escuro-mobile.png"); }
  .auth-flow-logo { margin-bottom: 22px; }
  .auth-flow-heading { gap: 12px; }
  .auth-flow-heading-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.4rem; }
  .auth-flow-heading > div { padding-left: 12px; }
  .password-requirements ul { grid-template-columns: 1fr; }
}
