/* Shared guest entry screens: login, recovery and password reset. */
body.auth-entry {
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(ellipse at 8% 10%, rgba(var(--ui-brand-rgb), .065), transparent 50%), var(--ui-canvas);
  color: var(--ui-table-text);
}
body.auth-entry::before, body.auth-entry::after { content: none; }
.auth-entry-page { width: min(1160px, 100%); min-height: 100svh; margin: auto; padding: 28px 24px 18px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth-entry-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-entry-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ui-heading); min-width: 0; }
.auth-entry-brand:hover { color: var(--ui-brand); }
.auth-entry-brand strong { display: block; font-size: 19px; font-weight: 700; }
.auth-entry-brand small { display: block; color: var(--ui-muted); font-size: 11px; }
.auth-entry-mark { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 50px; height: 50px; flex: 0 0 50px; border: 1px solid var(--ui-border); border-radius: 15px; background: var(--ui-surface); color: var(--ui-brand); font-size: 17px; font-weight: 700; direction: ltr; }
.auth-entry-mark > span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ui-copper); inset-inline-end: -3px; top: 7px; }
.auth-entry-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.auth-entry-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--ui-surface); color: var(--ui-table-text); font-size: 13px; }
.auth-entry-control:hover { color: var(--ui-brand); border-color: var(--ui-border-strong); background: var(--ui-primary-soft); }
.auth-entry-control i { font-size: 19px; }
.auth-entry-theme { width: 42px; padding: 8px; }
.auth-entry-shell { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ui-border); border-radius: 24px; overflow: hidden; background: var(--ui-surface); box-shadow: 0 18px 60px rgba(20, 44, 58, .075); }
.auth-entry-hero { position: relative; display: flex; flex-direction: column; padding: 44px 40px 30px; background: radial-gradient(circle at 80% 80%, #206166 0, transparent 60%), #142c3a; color: #edf5f6; overflow: hidden; }
.auth-entry-eyebrow { display: flex; align-items: center; gap: 8px; color: #c0d9da; font-size: 12px; margin-bottom: 20px; }
.auth-entry-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #deb58e; }
html:root body.auth-entry .auth-entry-hero h1 { color: #fff; font-size: clamp(26px, 2.7vw, 36px) !important; line-height: 1.65; font-weight: 700; margin-bottom: 14px; max-width: 420px; }
.auth-entry-hero > p { color: #bcd2d5; margin-bottom: 0; max-width: 430px; }
.auth-entry-orbit { position: relative; width: min(100%, 310px); height: 250px; margin: 16px auto 6px; flex: 1 0 250px; }
.auth-entry-ring { position: absolute; border: 1px solid rgba(163, 207, 207, .18); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.auth-entry-ring-outer { width: 240px; height: 240px; }
.auth-entry-ring-inner { width: 170px; height: 170px; border-style: dashed; border-color: rgba(163, 207, 207, .2); }
.auth-entry-orbit-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 108px; height: 108px; border: 1px solid rgba(163, 207, 207, .3); border-radius: 28px; color: #edf5f6; background: #224650; box-shadow: 0 10px 30px #0d242b55; }
.auth-entry-orbit-center span { font-size: 30px; font-weight: 600; direction: ltr; }
.auth-entry-orbit-center i { color: #83d2cd; font-size: 21px; }
.auth-entry-orbit-node { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(163, 207, 207, .3); border-radius: 13px; background: #1c3d48; color: #b5e4df; font-size: 22px; }
.auth-entry-node-one { top: 10px; left: 48%; }
.auth-entry-node-two { top: 56%; left: 0; }
.auth-entry-node-three { bottom: 8px; right: 5%; color: #deb58e; }
.auth-entry-orbit-dot { position: absolute; top: 43%; right: 7%; width: 8px; height: 8px; background: #deb58e; border-radius: 50%; }
.auth-entry-modules { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding-block: 16px 22px; }
.auth-entry-modules > span { display: flex; align-items: center; gap: 7px; color: #d5e6e8; font-size: 12px; }
.auth-entry-modules i { font-size: 17px; color: #83d2cd; }
.auth-entry-hero-footer { display: flex; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(163, 207, 207, .15); color: #acc6ca; font-size: 12px; }
.auth-entry-hero-footer i { color: #deb58e; font-size: 18px; }
.auth-entry-main { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 44px 48px; }
.auth-entry-form-content { width: 100%; max-width: 390px; }
.auth-entry-form-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--ui-primary-soft); color: var(--ui-brand); margin-bottom: 20px; font-size: 26px; }
.auth-entry-form-eyebrow { display: block; color: var(--ui-brand); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
html:root body.auth-entry .auth-entry-main h2 { color: var(--ui-heading); font-size: 27px !important; margin-bottom: 10px; }
.auth-entry-description { color: var(--ui-muted); margin-bottom: 28px; }
.auth-entry-field { margin-bottom: 20px; }
.auth-entry-field .form-label { color: var(--ui-heading); margin-bottom: 8px; }
.auth-entry-field .form-control { min-height: 50px; padding: 12px 14px; border: 1px solid var(--ui-border-strong); border-radius: 10px; background-color: var(--ui-surface); color: var(--ui-table-text); }
.auth-entry-field .form-control::placeholder { color: var(--ui-muted); opacity: .85; }
.auth-entry-field .form-control:focus { background-color: var(--ui-surface); color: var(--ui-table-text); border-color: var(--ui-brand); box-shadow: var(--ui-focus-ring); }
.auth-entry-field .form-control.is-invalid { border-color: var(--bs-danger, #c44545); background-image: none; }
.auth-entry-label-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.auth-entry-label-row > a { font-size: 12px; color: var(--ui-brand); }
.auth-entry-label-row > a:hover { text-decoration: underline; }
.auth-entry-password { position: relative; }
.auth-entry-password .form-control { padding-inline-end: 50px; }
.auth-entry-password-toggle { display: grid; place-items: center; position: absolute; inset-inline-end: 4px; top: 4px; width: 42px; height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--ui-muted); }
.auth-entry-password-toggle:hover { color: var(--ui-brand); background: var(--ui-primary-soft); }
.auth-entry-password-toggle i { font-size: 21px; }
.auth-entry-remember { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 24px; }
.auth-entry-remember .form-check-input { float: none; margin: 0; flex: 0 0 18px; width: 18px; height: 18px; border-color: var(--ui-border-strong); }
.auth-entry-remember .form-check-input:checked { background-color: var(--ui-brand); border-color: var(--ui-brand); }
body.auth-entry .auth-entry-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; border-radius: 10px; padding: 12px 16px; }
.auth-entry-submit i { font-size: 21px; }
[dir="ltr"] .auth-entry-arrow { transform: rotate(180deg); }
.auth-entry-form-note { display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; color: var(--ui-muted); font-size: 12px !important; margin: 22px 0 0; overflow-wrap: anywhere; }
.auth-entry-form-note i { font-size: 17px; flex-shrink: 0; }
.auth-entry-back { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ui-border); color: var(--ui-brand); }
[dir="rtl"] .auth-entry-back i { transform: rotate(180deg); }
.auth-entry-error { color: var(--bs-danger, #c44545); margin-top: 7px; font-size: 13px; }
.auth-entry-field-hint { color: var(--ui-muted); font-size: 12px !important; margin: 7px 0 0; }
.auth-entry-code-field { padding: 0; margin: 0 0 24px; border: 0; min-width: 0; }
.auth-entry-code-field legend { float: none; width: auto; margin-bottom: 10px; color: var(--ui-heading); font-size: 14px; font-weight: 600; }
.auth-entry-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; direction: ltr; }
html:root body.auth-entry .auth-entry-code .form-control { width: 100%; min-width: 0; height: 54px; padding: 8px 2px; text-align: center; direction: ltr; font-size: 23px !important; font-weight: 600; border: 1px solid var(--ui-border-strong); border-radius: 10px; background: var(--ui-surface); color: var(--ui-heading); }
html:root body.auth-entry .auth-entry-code .form-control:focus { border-color: var(--ui-brand); box-shadow: var(--ui-focus-ring); }
html:root body.auth-entry .auth-entry-code .form-control[aria-invalid="true"] { border-color: var(--bs-danger, #c44545); }
.auth-entry-resend { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ui-border); text-align: center; }
.auth-entry-resend > p { color: var(--ui-muted); margin-bottom: 10px; }
.auth-entry-resend .btn { min-height: 44px; border-radius: 10px; padding-inline: 20px; }
.auth-entry-countdown { display: block; margin-bottom: 14px; color: var(--ui-muted); font-size: 12px; }
.auth-entry-countdown time { display: inline-block; direction: ltr; font-variant-numeric: tabular-nums; color: var(--ui-brand); font-weight: 600; }
@media (max-width: 360px) { .auth-entry-code { gap: 5px; } }
.auth-entry-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--ui-muted); font-size: 12px; }
.auth-entry :is(a, button, input):focus-visible { outline: 2px solid var(--ui-brand); outline-offset: 3px; }
.auth-entry :is(input[type="email"], input[autocomplete="username"]) { direction: ltr; text-align: start; }
.auth-entry :is(input[type="email"], input[autocomplete="username"])::placeholder { direction: inherit; }
@media (max-width: 900px) {
  .auth-entry-page { padding: 20px; gap: 22px; }
  .auth-entry-hero { padding: 32px 26px 24px; }
  .auth-entry-main { padding: 36px 28px; }
}
@media (max-width: 680px) {
  .auth-entry-page { padding: 18px 14px; gap: 18px; }
  .auth-entry-brand small { display: none; }
  .auth-entry-brand strong { font-size: 16px; }
  .auth-entry-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .auth-entry-brand { gap: 8px; }
  .auth-entry-control { padding: 8px; }
  .auth-entry-shell { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .auth-entry-hero { padding: 24px; }
  .auth-entry-eyebrow { margin-bottom: 10px; }
  html:root body.auth-entry .auth-entry-hero h1 { font-size: 25px !important; margin-bottom: 8px; }
  .auth-entry-hero > p { font-size: 13px !important; }
  .auth-entry-orbit, .auth-entry-modules, .auth-entry-hero-footer { display: none; }
  .auth-entry-main { padding: 28px 24px 32px; }
  .auth-entry-form-icon { width: 42px; height: 42px; margin-bottom: 14px; }
  .auth-entry-footer { justify-content: center; text-align: center; }
}
@media (max-width: 360px) {
  .auth-entry-brand strong { font-size: 14px; }
  .auth-entry-controls { gap: 5px; }
  .auth-entry-main, .auth-entry-hero { padding-inline: 18px; }
}
