/* Login: white stage, optional intro video, then sign-in card — modern sans (Plus Jakarta Sans) */
:root {
    --auth-rail: #0f766e;
    --auth-rail-soft: rgba(15, 118, 110, 0.45);
}

.auth-premium-shell {
    position: relative;
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    overflow: hidden;
    isolation: isolate;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    background: #fff;
}

/* —— Intro video stage —— */
.auth-premium-intro {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: #fff;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.auth-premium-shell.auth-intro-complete .auth-premium-intro {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-premium-shell.auth-intro-no-wait .auth-premium-intro {
    display: none;
}

.auth-premium-video-wrap {
    position: relative;
    width: 100%;
    max-width: min(920px, 100%);
    margin: 0 auto;
}

.auth-premium-tapplay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-premium-tapplay:hover {
    background: rgba(15, 23, 42, 0.62);
}

.auth-premium-tapplay[hidden] {
    display: none !important;
}

.auth-premium-tapplay i {
    font-size: 2.25rem;
    margin-right: 0.65rem;
    vertical-align: middle;
}

.auth-premium-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(78vh, 640px);
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
    outline: none;
}

.auth-premium-skip {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    padding: 0.45rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #64748b;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.auth-premium-skip:hover {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.18);
    background: #fff;
}

@media (min-width: 768px) {
    .auth-premium-skip {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* —— Login card —— hidden until intro completes —— */
.auth-premium-card {
    position: relative;
    width: min(100%, 420px);
    z-index: 1;
    border-radius: 22px;
    padding: 0;
    background: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 28px 70px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
        visibility 0s linear 0.65s;
}

.auth-premium-shell.auth-intro-complete .auth-premium-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
        visibility 0s linear 0s;
}

.auth-premium-shell.auth-intro-no-wait .auth-premium-card {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
}

.auth-premium-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #14b8a6 0%, var(--auth-rail) 50%, #155e75 100%);
    border-radius: 22px 0 0 22px;
}

.auth-premium-card__inner {
    padding: 2.25rem 2rem 2rem;
    padding-left: calc(2rem + 5px);
}

@media (min-width: 576px) {
    .auth-premium-card__inner {
        padding: 2.5rem 2.5rem 2.25rem;
        padding-left: calc(2.5rem + 5px);
    }
}

.auth-premium-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-premium-brand img {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(15, 23, 42, 0.1));
    margin-bottom: 1rem;
}

.auth-premium-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f766e;
    margin-bottom: 0.35rem;
}

.auth-premium-title {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(1.5rem, 3.8vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.auth-premium-sub {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

.auth-premium-form .form-floating > .form-control {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    padding-top: 1.1rem;
    padding-bottom: 0.6rem;
    height: calc(3.25rem + 2px);
    font-weight: 500;
    font-family: inherit;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-premium-form .form-floating > .form-control:focus {
    border-color: var(--auth-rail-soft);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.auth-premium-form .form-floating > label {
    font-weight: 500;
    font-family: inherit;
    color: #64748b;
    padding-left: 0.9rem;
}

.auth-premium-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.25rem 0 0.5rem;
    padding: 0.35rem 0;
}

.auth-premium-remember .form-check {
    margin: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-premium-remember .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0;
    border-radius: 6px;
    border-color: rgba(15, 23, 42, 0.2);
    cursor: pointer;
}

.auth-premium-remember .form-check-input:checked {
    background-color: var(--auth-rail);
    border-color: var(--auth-rail);
}

.auth-premium-remember .form-check-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

.auth-premium-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    font-family: inherit;
    color: #f8fafc;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 48%, #0e7490 100%);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-premium-btn:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.35);
    transform: translateY(-1px);
}

.auth-premium-btn:active {
    transform: translateY(0);
}

.auth-premium-footer {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
}

.auth-premium-footer p {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
}

.auth-premium-footer p:last-child {
    margin-bottom: 0;
}

.auth-premium-footer a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.auth-premium-footer a:hover {
    color: #115e59;
    border-bottom-color: rgba(15, 118, 110, 0.4);
}

.auth-premium-shell .validation-summary-errors {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(185, 28, 28, 0.22);
    background: rgba(254, 242, 242, 0.95);
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-premium-shell .validation-summary-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.auth-premium-form span.text-danger {
    font-size: 0.8rem;
    display: block;
    margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
    .auth-premium-intro,
    .auth-premium-card {
        transition: none !important;
    }

    .auth-premium-btn {
        transition: none;
    }

    .auth-premium-btn:hover {
        transform: none;
    }
}

/* =====================================================================
   Login: stretch white content between site nav and footer (body.auth-login-route)
   ===================================================================== */
body.auth-login-route {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.auth-login-route > .container-fluid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0;
    padding-right: 0;
    min-height: 0;
}

body.auth-login-route main[role="main"] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
    min-height: 0;
}

body.auth-login-route .identity-pages-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.auth-login-route footer.footer {
    flex-shrink: 0;
}

/* Flush content under menu on login */
body.auth-login-route nav.navbar.mb-4 {
    margin-bottom: 0 !important;
}

body.auth-login-route .auth-premium-shell {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    align-self: stretch;
    padding: 0;
}

/* After intro: breathing room around the login card */
body.auth-login-route .auth-premium-shell.auth-intro-complete {
    padding: 1.25rem 1rem 2rem;
    justify-content: center;
}

/* Video fills entire white band edge-to-edge (nav → footer) */
body.auth-login-route .auth-premium-intro {
    padding: 0;
    display: block;
}

body.auth-login-route .auth-premium-video-wrap {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    max-width: none;
    margin: 0;
    display: block;
}

body.auth-login-route .auth-premium-video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: center center;
    background: #0f172a;
}

body.auth-login-route .auth-premium-tapplay {
    border-radius: 0;
}
