/* Shared authentication pages. Scoped to keep the portal layout independent. */
.auth-page {
    --auth-ink: #142c40;
    --auth-muted: #66788a;
    --auth-accent: #176c76;
    background: #f6f8fa;
    color: var(--auth-ink);
    -webkit-font-smoothing: antialiased;
}
.auth-page .auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 46%) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}
.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(32px, 4.5vw, 76px);
    color: #fff;
    background: radial-gradient(ellipse at 0 100%, #236672 0, transparent 65%), linear-gradient(145deg, #102b40, #153e50);
}
.auth-brand::after {
    content: '';
    position: absolute;
    width: 540px;
    height: 540px;
    right: -330px;
    bottom: -220px;
    border: 1px solid #ffffff18;
    border-radius: 50%;
    box-shadow: 0 0 0 70px #ffffff04, 0 0 0 140px #ffffff04;
    pointer-events: none;
}
.auth-logo { position: relative; z-index: 1; align-self: flex-start; }
.auth-logo img { display: block; width: min(290px, 100%); height: auto; }
.auth-brand-content { position: relative; z-index: 1; padding: 80px 0; max-width: 460px; }
.auth-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2.4px; }
.auth-brand .auth-eyebrow { color: #a5d1d3; }
.auth-brand h1 { margin: 24px 0; color: #fff; font-size: clamp(32px, 3.2vw, 52px); line-height: 1.23; font-weight: 500; letter-spacing: -1.8px; }
.auth-brand-content > p { max-width: 350px; margin: 0; color: #c3d4df; font-size: 14px; line-height: 1.9; }
.auth-brand-divider { width: 48px; height: 2px; background: #80b8bc; margin: 34px 0; }
.auth-brand-caption { display: flex; align-items: center; gap: 16px; color: #c3d4df; font-size: 12px; line-height: 1.8; }
.auth-brand-caption strong { color: #fff; font-weight: 500; }
.auth-caption-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff30; border-radius: 12px; font-size: 24px; }
.auth-brand-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; font-size: 9px; letter-spacing: 1.2px; color: #b6ccd5; }
.auth-workspace { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 64px clamp(24px, 5vw, 88px) 28px; }
.auth-page .body-sign .center-sign { display: block; width: 100%; max-width: 440px; padding: 24px 0; margin: auto 0; }
.auth-form-intro { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 38px; }
.auth-form-intro .auth-eyebrow { color: var(--auth-accent); }
.auth-access-label { display: flex; align-items: center; gap: 6px; color: var(--auth-muted); font-size: 11px; }
.auth-page .body-sign .card-sign { margin: 0; border: 0; box-shadow: none; }
.auth-page .body-sign .card-title-sign { margin-top: 0 !important; text-align: left !important; }
.auth-page .body-sign .card-sign .card-title-sign .title { display: block; padding: 0 0 28px; background: transparent; border-radius: 0; color: var(--auth-ink); font-size: clamp(24px, 2.5vw, 30px); line-height: 1.35; font-weight: 600 !important; text-transform: none !important; letter-spacing: -0.8px; }
.auth-page .card-title-sign .title > i { display: none; }
.auth-page .body-sign .card-sign .card-body { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-page .card-body p { color: var(--auth-muted); font-size: 13px; line-height: 1.8; }
.auth-page .form-group { margin-bottom: 22px !important; }
.auth-page label { margin-bottom: 8px; color: #324b5d; font-size: 12px; font-weight: 500; }
.auth-page .input-group { border-radius: 12px; box-shadow: 0 2px 4px #142c4003; }
.auth-page .form-control { min-height: 54px; padding: 14px 16px; background: #fff; border: 1px solid #dce3e9; border-radius: 12px; color: var(--auth-ink); font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.auth-page .form-control::placeholder { color: #8795a3; font-size: 12px; }
.auth-page .input-group .form-control { border-right: 0; }
.auth-page .input-group-text { padding: 0 17px; color: #7a909f; border: 1px solid #dce3e9; border-left: 0; border-radius: 0 12px 12px 0; background: #fff; }
.auth-page .form-control:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 3px #176c7618; z-index: 3; }
.auth-page .input-group:focus-within .input-group-text { border-color: var(--auth-accent); color: var(--auth-accent); }
.auth-page .form-check { padding-left: 1.7em; }
.auth-page .form-check-label { margin: 0; font-size: 12px; color: var(--auth-muted); }
.auth-page .form-check-input { border-color: #bdcbd5; cursor: pointer; }
.auth-page .form-check-input:checked { background-color: var(--auth-accent); border-color: var(--auth-accent); }
.auth-page .btn { min-height: 50px; padding: 13px 20px; border-radius: 12px; font-size: 13px; font-weight: 600; transition: background .2s, box-shadow .2s; }
.auth-page .btn-primary { width: 100%; color: #fff; background: var(--auth-ink); border-color: var(--auth-ink); box-shadow: 0 5px 12px #142c4014; }
.auth-page .btn-primary:hover { background: #205567; border-color: #205567; box-shadow: 0 7px 18px #142c4020; }
.auth-page .btn-secondary { width: 100%; margin-top: 12px !important; background: #e9eef2; border-color: #e9eef2; color: #324b5d; }
.auth-page a:not(.btn):not(.auth-logo) { color: var(--auth-accent); text-decoration: none; }
.auth-page a:not(.btn):not(.auth-logo):hover { text-decoration: underline; }
.auth-page :is(a, button, input):focus-visible { outline: 3px solid #39959f; outline-offset: 3px; }
.auth-page .alert { border-radius: 12px; font-size: 12px; line-height: 1.7; }
.auth-footer { max-width: 500px; margin-top: 40px; text-align: center; color: #6c7d8c; font-size: 10px; line-height: 1.9; }
@media (min-width: 992px) { .auth-brand { min-height: 100vh; min-height: 100svh; } }
@media (max-width: 991px) {
    .auth-page .auth-shell { grid-template-columns: minmax(280px, 40%) minmax(0, 1fr); }
    .auth-brand { padding: 32px 24px; }
    .auth-brand h1 { font-size: 32px; letter-spacing: -1px; }
    .auth-brand-bottom { flex-wrap: wrap; }
    .auth-workspace { padding: 40px 28px 24px; }
}
@media (max-width: 767px) {
    .auth-page .auth-shell { display: flex; flex-direction: column; }
    .auth-brand { padding: 25px 28px; flex-shrink: 0; }
    .auth-logo img { width: 220px; }
    .auth-brand-content, .auth-brand-bottom { display: none; }
    .auth-workspace { flex: 1; padding: 32px 24px 20px; }
    .auth-page .body-sign .center-sign { padding: 0; }
    .auth-form-intro { margin-bottom: 28px; }
    .auth-footer { margin-top: 36px; }
    .auth-page .form-control { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page .form-control, .auth-page .btn { transition: none; }
}
