:root {
    --bs-body-font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --primary-color: #4f46e5; /* Bento Indigo */
    --primary-hover: #4338ca;
    --border-color: #e2e8f0;
    --light-bg: #f8fafc;
}

body {
    background-color: var(--light-bg);
    font-family: var(--bs-body-font-family);
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

.btn-primary-custom {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.15s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Custom input wrappers matching index.css */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
}

.search-wrapper .form-control {
    padding-left: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    font-size: 0.875rem;
    font-family: var(--bs-body-font-family);
    background-color: #ffffff;
    transition: all 0.15s ease;
    height: 42px;
}

.search-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

/* --- Layout Wrappers & Outer Containers --- */
.login-wrapper {
    background-image: radial-gradient(circle at 10% 20%, rgba(239, 242, 249, 0.6) 0%, rgba(248, 250, 252, 1) 90%);
}

.login-container {
    max-width: 1000px;
}

.login-card {
    background: #ffffff;
}

/* --- Branding/Marketing Left-Column Panels --- */
.login-branding-col {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.brand-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.brand-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.brand-icon-wrapper {
    color: var(--primary-color) !important;
}

.brand-icon {
    font-size: 1.1rem;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
}

.brand-description {
    max-width: 400px;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* --- Login Form Component Styling (Right Column) --- */
.form-wrapper {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.mobile-brand-icon-wrapper {
    background-color: var(--primary-color) !important;
}

.form-title {
    font-size: 1.75rem;
}

.form-subtitle {
    font-size: 0.9rem;
}

.form-label-custom {
    font-size: 0.8rem;
}

#toggle-password {
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--primary-color) !important;
}

.divider-text {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.social-btn {
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-autofill-custom {
    font-size: 0.8rem;
    border-style: dashed !important;
}

.form-footer-text {
    font-size: 0.75rem;
}

/* Custom outline primary button for Volunteer Registration toggle */
.btn-outline-primary-custom {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    background-color: transparent !important;
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.15s ease;
}

.btn-outline-primary-custom:hover {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Dropdown select integration in search wrappers */
.search-wrapper .form-select {
    padding-left: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    font-size: 0.875rem;
    font-family: var(--bs-body-font-family);
    background-color: #ffffff;
    transition: all 0.15s ease;
    height: 42px;
}

.search-wrapper .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

/* --- Form Column Base Styles --- */
.login-form-col {
    padding: 3rem;
}

/* --- Mobile Responsive & Target Spacing Rules --- */
@media (max-width: 992px) {
    .login-form-col {
        padding: 2.5rem 2rem !important;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 0 !important; /* Removes outer margins and gaps */
        align-items: center !important; /* Centered in container */
        justify-content: center !important;
        overflow: hidden !important; /* Disables outer vertical page scroll */
        height: 100vh !important;
        max-height: 100vh !important;
    }
    .login-container {
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .login-card {
        background: #ffffff !important; /* Flat background */
        border: none !important; /* Removes card borders */
        box-shadow: none !important; /* Removes card drop shadows */
        border-radius: 0 !important; /* Removes rounded corners */
        margin: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important; /* Disables container scroll */
    }
    .login-form-col {
        padding: 1.5rem 1.5rem !important; /* Compressed inner padding */
        height: 100vh !important;
        max-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Vertical flex-centering of forms */
    }
    
    /* Spacing compression to fit screen height without scrolling */
    .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    .my-3 {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    .mt-3 {
        margin-top: 0.5rem !important;
    }
    .pt-3 {
        padding-top: 0.5rem !important;
    }
    
    .form-title {
        font-size: 1.5rem !important;
    }
    .form-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }
    .btn-primary-custom, .btn-outline-primary-custom {
        padding: 0.55rem 1rem !important;
        font-size: 0.875rem !important;
    }
    .search-wrapper .form-control, .search-wrapper .form-select {
        height: 38px !important; /* Slightly thinner input targets to save height */
        font-size: 0.8rem !important;
    }
}

/* Terms & Privacy Modal Custom Styling */
#termsPrivacyModal .nav-pills .nav-link {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    transition: all 0.2s ease;
}
#termsPrivacyModal .nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
#termsPrivacyModal .nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(79, 70, 229, 0.05) !important;
}

.brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    font-size: 1.25rem !important;
    background: linear-gradient(135deg, #1e293b 30%, #4f46e5 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

.brand-text-light {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    font-size: 1.25rem !important;
    color: #ffffff !important;
}
