/* Personal portal guest layout. Edit colors and spacing here; login markup is in auth/login.blade.php. */
:root {
    color-scheme: light;
    --orbit-navy: #102b48;
    --orbit-ink: #18304a;
    --orbit-muted: #6c7d90;
    --orbit-teal: #22b6a4;
}

* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    min-height: 100vh;
    background: #f5f8fb;
    color: var(--orbit-ink);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.auth-intro {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: radial-gradient(circle at 78% 72%, #206880 0, transparent 38%),
                linear-gradient(150deg, #123b59 0%, #102b48 52%, #092438 100%);
    color: #fff;
}

.intro-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(2rem, 4.6vw, 5rem);
}

.orbit-logo { display: block; max-width: 100%; height: auto; }
.orbit-logo-intro { width: clamp(255px, 27vw, 360px); }

.intro-copy { max-width: 560px; margin: auto 0; padding: 3rem 0 5rem; }
.intro-eyebrow {
    margin-bottom: 1.25rem;
    color: #81ddce;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .25em;
}
.intro-copy h2 {
    max-width: 520px;
    margin-bottom: 1.4rem;
    font-size: clamp(2.5rem, 4.3vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.12;
}
.intro-copy > p:last-child {
    max-width: 440px;
    color: #bfd1dc;
    font-size: 1.05rem;
    line-height: 1.75;
}
.intro-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 440px;
    color: #9bb7c6;
    font-size: .75rem;
    letter-spacing: .035em;
    line-height: 1.5;
}
.footer-line { flex: 0 0 28px; height: 2px; background: var(--orbit-teal); }

.orbit-art {
    position: absolute;
    right: -18%;
    bottom: -32%;
    width: min(70vw, 760px);
    aspect-ratio: 1;
    pointer-events: none;
}
.orbit-ring, .orbit-core, .orbit-satellite { position: absolute; border-radius: 50%; }
.orbit-ring-one { inset: 4%; border: 1px solid rgba(183, 232, 233, .17); }
.orbit-ring-two { inset: 18%; border: 1px solid rgba(183, 232, 233, .23); }
.orbit-ring-three { inset: 34%; border: 1px solid rgba(183, 232, 233, .3); }
.orbit-core { inset: 45%; background: rgba(103, 220, 202, .58); box-shadow: 0 0 90px rgba(72, 201, 195, .3); }
.orbit-satellite { top: 16%; left: 24%; width: 15px; height: 15px; background: #6bddca; box-shadow: 0 0 24px rgba(109, 221, 202, .65); }

.auth-panel {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 2.5rem;
    background: #fff;
}
.auth-panel-inner { width: min(100%, 420px); margin: auto; }
.mobile-logo-frame { display: none; width: max-content; max-width: 100%; padding: .55rem .8rem; border-radius: 14px; background: var(--orbit-navy); }
.orbit-logo-mobile { width: 230px; }
.login-heading { margin-bottom: 2.4rem; }
.portal-label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .45rem .75rem;
    border-radius: 7px;
    background: #e7f6f3;
    color: #138b7e;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.login-heading h1 {
    margin: 0 0 .65rem;
    color: #102b48;
    font-size: clamp(1.8rem, 2.3vw, 2.2rem);
    font-weight: 750;
    letter-spacing: -.04em;
}
.login-heading p, .access-note { color: var(--orbit-muted); }
.login-heading p { margin: 0; }
.login-alert { margin-bottom: 1.5rem; border-radius: 10px; }
.form-field { margin-bottom: 1.3rem; }
.form-field .form-label { margin-bottom: .55rem; color: #284058; font-size: .88rem; font-weight: 650; }
.form-field .form-control {
    min-height: 52px;
    padding: .8rem .95rem;
    border: 1px solid #d6dfe7;
    border-radius: 10px;
    background: #fbfcfe;
    color: #17314a;
    font-size: .96rem;
}
.form-field .form-control::placeholder { color: #9aa8b5; }
.form-field .form-control:focus {
    border-color: #27a99b;
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(39, 169, 155, .14);
}
.form-field .form-control.is-invalid { border-color: #d96a69; }
.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 54px;
    margin-top: 1.8rem;
    border: 1px solid var(--orbit-navy);
    border-radius: 10px;
    background: var(--orbit-navy);
    color: #fff;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.login-button:hover, .login-button:focus-visible {
    border-color: #174c65;
    background: #174c65;
    color: #fff;
    box-shadow: 0 8px 20px rgba(16, 43, 72, .16);
}
.login-button:active { transform: translateY(1px); }
.login-button span { font-size: 1.25rem; font-weight: 400; line-height: 1; }
.access-note { margin: 1.65rem 0 0; font-size: .82rem; line-height: 1.6; text-align: center; }
.panel-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8edf2;
    color: #8b9aab;
    font-size: .75rem;
}
.otp-code-input { letter-spacing: .3em; font-size: 1.15rem !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.auth-secondary-actions { display: flex; align-items: center; gap: 22px; margin-top: 20px; font-size: .86rem; }
.auth-secondary-actions form, .auth-exit-form { margin: 0; }
.auth-secondary-actions a, .auth-text-button { color: #0f766e; font-weight: 650; text-decoration: none; }
.auth-secondary-actions a:hover, .auth-text-button:hover { color: #0a514c; text-decoration: underline; }
.auth-text-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.auth-exit-form { margin-top: 17px; font-size: .83rem; }
@media (max-width: 991.98px) {
    .auth-shell { display: block; }
    .auth-intro { display: none; }
    .auth-panel { min-height: 100vh; padding: 2.5rem 1.5rem; }
    .mobile-logo-frame { display: block; margin-bottom: 3.5rem; }
    .panel-footer { margin-top: 3.5rem; }
}
@media (max-width: 480px) {
    .auth-panel { align-items: start; padding: 2rem 1.25rem; }
    .mobile-logo-frame { margin-bottom: 4rem; }
    .login-heading { margin-bottom: 2rem; }
    .panel-footer { margin-top: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .login-button { transition: none; }
}
