:root {
    --auth-navy: #122449;
    --auth-blue: #3157c8;
    --auth-gold: #d99a2b;
    --auth-mist: #edf2fa;
    --auth-line: #dbe4f0;
}

* { box-sizing: border-box; }

body.auth-page {
    min-height: 100vh;
    margin: 0;
    color: #17233b;
    background: #eef3f9;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr);
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 5rem);
    color: #fff;
    background: var(--auth-navy);
}

.auth-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 36, 73, .68);
}

.auth-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-visual-copy {
    position: relative;
    z-index: 1;
    max-width: 580px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--auth-navy);
    background: #fff;
}

.auth-visual h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .98;
}

.auth-visual p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    line-height: 1.75;
}

.auth-content {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.auth-panel {
    width: min(100%, 560px);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 70px rgba(18, 36, 73, .13);
}

.auth-panel-wide { width: min(100%, 720px); }

.auth-kicker {
    color: var(--auth-blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-title {
    margin: .55rem 0 .55rem;
    color: var(--auth-navy);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

.auth-subtitle {
    margin-bottom: 1.7rem;
    color: #687891;
    line-height: 1.7;
}

.auth-page .form-label {
    color: #34445f;
    font-size: .82rem;
    font-weight: 750;
}

.auth-page .form-control,
.auth-page .form-select {
    min-height: 50px;
    padding: .75rem .9rem;
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    background: #f8fafc;
}

.auth-page textarea.form-control { min-height: 90px; }

.auth-page .form-control:focus,
.auth-page .form-select:focus {
    border-color: var(--auth-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(49, 87, 200, .12);
}

.auth-input-wrap { position: relative; }

.auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: #8a98ab;
    transform: translateY(-50%);
}

.auth-input-wrap .form-control { padding-left: 2.75rem; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: .7rem;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    color: #687891;
    background: transparent;
    transform: translateY(-50%);
}

.btn-auth {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--auth-blue);
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(49, 87, 200, .22);
}

.btn-auth:hover {
    color: #fff;
    background: var(--auth-navy);
}

.auth-link {
    color: var(--auth-blue);
    font-weight: 750;
    text-decoration: none;
}

.auth-link:hover { color: var(--auth-navy); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.5rem 0;
    color: #91a0b4;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--auth-line);
}

.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.25rem;
    color: #75849a;
    font-size: .72rem;
}

.password-meter {
    height: 5px;
    overflow: hidden;
    margin-top: .55rem;
    border-radius: 99px;
    background: #e2e8f0;
}

.password-meter span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #dc3545;
    transition: width .2s ease, background-color .2s ease;
}

.checkin-service {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #d9e3f3;
    border-radius: 16px;
    background: #f1f5ff;
}

.checkin-service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 15px;
    color: #fff;
    background: var(--auth-blue);
}

.otp-field {
    font-size: 1.3rem !important;
    font-weight: 800;
    letter-spacing: .45rem;
    text-align: center;
}

.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual {
        min-height: 320px;
        padding: 2rem;
    }
    .auth-visual h1 { font-size: 2.7rem; }
    .auth-content { min-height: auto; padding: 1rem; }
    .auth-panel { margin: -38px 0 1rem; position: relative; z-index: 2; }
}

@media (max-width: 575.98px) {
    .auth-visual { min-height: 270px; }
    .auth-visual p { display: none; }
    .auth-panel { padding: 1.35rem; border-radius: 22px; }
}
