/*
 * Login Page - Modern & Fancy
 * Uses Bootstrap 5.3 + custom enhancements
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ===== Section ===== */
.login-page-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%);
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

/* ===== Main Card ===== */
.login-main-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(37, 99, 235, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.04);
}

.login-main-card>.row {
    min-height: 100%;
}

.login-main-card>.row>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* ===== Left Pane (Branding) ===== */
.login-brand-pane {
    background: linear-gradient(160deg, #162e7a 0%, #1e4fd6 40%, #2563eb 100%);
    color: #fff;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.login-brand-pane::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.login-brand-pane::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.login-brand-pane .brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.login-brand-pane .brand-desc {
    font-size: 0.88rem;
    opacity: 1;
    line-height: 1.6;
    margin-bottom: 24px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.login-brand-pane .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.login-brand-pane .feature-icon-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.login-brand-pane .feature-text h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 1px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.login-brand-pane .feature-text small {
    opacity: 0.95;
    font-size: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ===== Right Pane (Form) ===== */
.login-form-pane {
    padding: 36px 35px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-pane .form-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.login-form-pane .form-subheading {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

/* ===== Form Controls ===== */
.login-form-pane .form-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.login-form-pane .input-group {
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.login-form-pane .input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #fff;
}

.login-form-pane .input-group .input-group-text {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    padding: 9px 12px;
    transition: color 0.3s ease;
}

.login-form-pane .input-group:focus-within .input-group-text {
    color: #2563eb;
}

.login-form-pane .input-group .form-control {
    border: none;
    background: transparent;
    padding: 9px 12px 9px 0;
    font-size: 0.88rem;
    color: #0f172a;
    height: auto;
    box-shadow: none !important;
}

.login-form-pane .input-group .form-control::placeholder {
    color: #94a3b8;
}

/* ===== CAPTCHA ===== */
.captcha-display {
    background: linear-gradient(135deg, #eff6ff, #f0f4ff);
    border: 1.5px dashed #93c5fd;
    border-radius: 10px;
    padding: 10px 16px;
    text-align: center;
    margin-bottom: 8px;
}

.captcha-display .captcha-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e40af;
    letter-spacing: 3px;
}

/* ===== Login Button ===== */
.btn-login-modern {
    font-family: 'Outfit', sans-serif;
    width: 100%;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: all 0.35s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    cursor: pointer;
}

.btn-login-modern:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    color: #fff;
}

.btn-login-modern:active {
    transform: translateY(0);
}

/* ===== Checkbox ===== */
.login-form-pane .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* ===== Divider ===== */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 0.82rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ===== Register Link ===== */
.login-register-link {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.login-register-link a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-register-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ===== Loading Spinner ===== */
.login-loading {
    text-align: center;
    color: #2563eb;
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .login-page-section {
        padding: 80px 0 40px;
    }

    .login-brand-pane {
        min-height: auto;
        padding: 40px 30px;
    }

    .login-brand-pane .brand-title {
        font-size: 1.75rem;
    }

    .login-form-pane {
        padding: 35px 30px;
    }
}

@media (max-width: 575.98px) {
    .login-page-section {
        padding: 70px 0 30px;
    }

    .login-form-pane {
        padding: 28px 20px;
    }

    .login-brand-pane {
        padding: 30px 20px;
    }

    .login-brand-pane .brand-title {
        font-size: 1.5rem;
    }
}