/* Modern Split-Screen Login Design */

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
}

.split-screen-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- Left Panel (Brand) --- */
.left-panel {
    flex: 1;
    background-color: #3b2a1a;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fdf8ef;
    overflow: hidden;
}

.overlay-mandala {
    display: none; /* Removed as requested */
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 1s ease-out;
}

.brand-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.brand-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #FDF8EF; /* Light color as requested */
}

.brand-content p {
    font-size: 1.25rem;
    color: rgba(253, 248, 239, 0.8);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Right Panel (Form) --- */
.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fdf8ef;
    padding: 2rem;
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    /* background: white; */
    /* Optional: if we want a card look on the right side too */
}

.login-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.login-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #3b2a1a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-header p {
    color: #64748b;
    font-size: 1rem;
}

/* --- Form Elements --- */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #3b2a1a;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    color: #a47038;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 3rem;
    /* Left padding for icon */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #ffffff;
    color: #334155;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #a47038;
    box-shadow: 0 0 0 4px rgba(164, 112, 56, 0.1);
}

.input-wrapper input::placeholder {
    color: #cbd5e1;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b2a1a 0%, #a47038 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 10px 15px -3px rgba(59, 42, 26, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(59, 42, 26, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer Link */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #64748b;
}

.login-footer a {
    color: #a47038;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #3b2a1a;
    text-decoration: underline;
}

/* Error Alert */
.error-alert {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .split-screen-container {
        flex-direction: column;
    }

    .left-panel {
        flex: 0 0 35%;
        /* Takes top 35% */
        padding: 1rem;
    }

    .brand-logo {
        width: 80px;
        margin-bottom: 1rem;
    }

    .brand-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .brand-content p {
        font-size: 1rem;
        max-width: 80%;
    }

    .right-panel {
        flex: 1;
        background-color: #ffffff;
        /* White bg on mobile for better contrast */
        border-radius: 30px 30px 0 0;
        /* Rounded top corners */
        margin-top: -20px;
        /* Negative margin to pull up over the brand panel */
        z-index: 10;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
        align-items: flex-start;
        /* Align to top */
        padding-top: 3rem;
    }

    .login-box {
        padding: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- OTP Specific Styles --- */
.otp-inputs-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.otp-box {
    width: 55px;
    height: 55px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b2a1a;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.otp-box:focus {
    border-color: #a47038;
    box-shadow: 0 0 0 4px rgba(164, 112, 56, 0.1);
    transform: translateY(-2px);
}

.resend-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

.resend-link a {
    color: #a47038;
    font-weight: 600;
    text-decoration: none;
}

.resend-link a:hover {
    text-decoration: underline;
}

.sub-text {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 30px;
    text-align: left;
    /* Aligned with header */
}