﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
}

/* ============================================
   Split-screen shell: hero carousel (left) + sign-in form (right)
   ============================================ */
.login-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- LEFT: hero / carousel ---------- */
.login-hero {
    position: relative;
    flex: 1 1 56%;
    overflow: hidden;
    background-color: #2A2A2A;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease-in-out;
    will-change: opacity, transform;
    filter: sepia(0.75) saturate(1.5) brightness(0.78) contrast(1.15) hue-rotate(-8deg);
}

    .hero-slide.active {
        opacity: 1;
        z-index: 1;
    }

    .hero-slide.kenburns {
        animation: heroKenBurns 7s ease-out forwards;
    }

@keyframes heroKenBurns {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.08) translate(-1.5%, -1.5%);
    }
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(35, 20, 10, 0.45) 0%, rgba(18, 10, 5, 0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #FFFFFF;
}

/* Logo (moved from the right panel) */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.hero-brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.hero-brand-name-sub {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    opacity: 0.9;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
}

.hero-text p {
    font-size: 15px;
    max-width: 420px;
    margin: 0;
    opacity: 0.85;
}

/* Legal footer (moved from the right panel), centered */
.hero-footer-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

    .hero-footer-note a {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
    }

        .hero-footer-note a:hover {
            color: #FFFFFF;
            text-decoration: underline;
        }

    .hero-footer-note .sep {
        opacity: 0.5;
    }

/* ---------- RIGHT: sign-in form panel ---------- */
.login-form-panel {
    flex: 1 1 44%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FBFAF8;
    padding: 48px 32px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.login-eyebrow {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #A61E22;
    margin-bottom: 14px;
}

.login-heading {
    margin-bottom: 32px;
}

    .login-heading h1 {
        font-family: 'Inter', sans-serif;
        font-size: 30px;
        font-weight: 700;
        color: #1E293B;
        margin: 0 0 8px;
        line-height: 1.2;
    }

    .login-heading p {
        font-size: 14px;
        color: #64748B;
        margin: 0;
    }

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.input-group-text {
    background: #F5F7FC !important;
    border: 1px solid #E2E6F0 !important;
    color: #A61E22;
}

.form-control {
    background: #F5F7FC;
    border: 1px solid #E2E6F0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1E293B;
}

    .form-control::placeholder {
        color: #94A3B8;
    }

    .form-control:focus {
        background: #FFFFFF;
        border-color: #A61E22;
        box-shadow: 0 0 0 3px rgba(166, 30, 34, 0.15);
        color: #1E293B;
    }

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 28px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

    .remember-me input[type="checkbox"] {
        width: 15px;
        height: 15px;
        accent-color: #A61E22;
        cursor: pointer;
    }

.forgot-link {
    color: #A61E22;
    text-decoration: none;
    font-size: 13px;
}

    .forgot-link:hover {
        color: #7E1418;
        text-decoration: underline;
    }

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    cursor: pointer;
    color: #94A3B8;
}

    .toggle-password:hover {
        color: #A61E22;
    }

.btn-login {
    background: linear-gradient(180deg, #A61E22 0%, #7E1418 100%);
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-weight: 600;
    font-size: 15px;
    color: #FFFFFF;
    width: 100%;
    letter-spacing: 0.3px;
    transition: all 0.2s;
}

    .btn-login:hover {
        background: linear-gradient(180deg, #8A1519 0%, #660F13 100%);
        color: #FFFFFF;
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.login-footnote {
    text-align: center;
    font-size: 13px;
    color: #64748B;
    margin-top: 24px;
}

    .login-footnote a {
        color: #A61E22;
        font-weight: 600;
        text-decoration: none;
    }

        .login-footnote a:hover {
            text-decoration: underline;
        }

/* ============================================
   reCAPTCHA security-check modal — unchanged
   ============================================ */
.captcha-modal-content {
    border-radius: 16px;
    border: 1px solid rgba(166, 30, 34, 0.2);
}

.captcha-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(166, 30, 34, 0.1);
    color: #A61E22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
}

.captcha-modal-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #A61E22;
    margin-bottom: 6px;
}

.captcha-modal-sub {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 4px;
}

#captchaContinueBtn {
    width: auto;
    padding: 10px 28px;
}

    #captchaContinueBtn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .login-hero {
        display: none;
    }

    .login-form-panel {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }

        .hero-slide.kenburns {
            animation: none;
        }
}
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(180deg, #A61E22 0%, #3A0B0D 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    .page-loader.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.page-loader-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-loader-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.page-loader-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.page-loader-name-sub {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    opacity: 0.9;
}

.page-loader-status {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.page-loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.page-loader-bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D4AF6A, #E8C888);
    border-radius: 2px;
    transition: width 0.4s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .page-loader {
        transition: none;
    }

    .page-loader-bar-fill {
        transition: none;
    }
}
.otp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

    .otp-modal-close:hover {
        background: rgba(166, 30, 34, 0.1);
        color: #A61E22;
    }

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-box {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    color: #1E293B;
}

    .otp-box:focus {
        outline: none;
        background: #FFFFFF;
        border-color: #A61E22;
        box-shadow: 0 0 0 3px rgba(166, 30, 34, 0.15);
    }

@media (max-width: 400px) {
    .otp-box {
        width: 38px;
        height: 46px;
        font-size: 18px;
    }

    .otp-boxes {
        gap: 6px;
    }
}