/**
 * Sirati Student Portal - Authentication Styles
 * Clean 50/50 split layout with modern inputs
 */

:root {
    --primary: #1e3a5f;
    --primary-dark: #0f172a;
    --accent: #0074d9;
    --accent-hover: #0063b8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   50/50 Split Layout
   ========================================== */

.split-layout {
    display: flex;
    min-height: 100vh;
}

/* Form Panel - Left Side */
.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.form-panel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

@media (min-width: 1024px) {
    .form-panel {
        flex: 0 0 50%;
        padding: 32px 48px;
    }
}

@media (min-width: 1280px) {
    .form-panel {
        padding: 40px 64px;
    }
}

.form-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-container.narrow {
    max-width: 400px;
}

/* Brand Panel - Right Side with Animated Background */
.brand-panel {
    display: none;
    flex: 0 0 50%;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0e4d71 100%);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .brand-panel {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Animation styles are now in /assets/css/animated-bg.css */

/* Legacy image-based brand panel (fallback) */
.brand-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.brand-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60px;
    color: #fff;
    z-index: 2;
}

.brand-logo {
    height: 48px;
    width: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.brand-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Top Header with Logo and Language */
.form-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.form-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.portal-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary, #1e3a5f);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(30, 58, 95, 0.04) 100%);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(30, 58, 95, 0.12);
    white-space: nowrap;
}

/* Mobile Header */
.mobile-header,
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .mobile-header,
    .mobile-logo {
        display: none;
    }
}

.mobile-header img,
.mobile-logo img {
    height: 40px;
    width: auto;
}

.mobile-header h1,
.mobile-logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

/* ==========================================
   Form Header
   ========================================== */

.form-header {
    margin-bottom: 16px;
}

.form-header.centered {
    text-align: center;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

@media (min-width: 640px) {
    .form-header h2 {
        font-size: 26px;
    }
}

.form-header p {
    color: var(--gray-500);
    font-size: 14px;
}

/* ==========================================
   Form Elements
   ========================================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 10px;
}

.form-row .form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--error);
    margin-left: 2px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label-hint {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-400);
}

.forgot-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ==========================================
   Input Fields - Clean Modern Style
   ========================================== */

.field {
    position: relative;
}

.field-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--gray-900);
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

@media (min-width: 640px) {
    .field-input {
        height: 42px;
        font-size: 14px;
    }
}

.field-input::placeholder {
    color: var(--gray-400);
}

.field-input:hover {
    border-color: var(--gray-400);
}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.field-input.has-icon {
    padding-left: 38px;
}

.field-input.has-action {
    padding-right: 38px;
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition);
}

.field-input:focus ~ .field-icon {
    color: var(--primary);
}

.field-action {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.field-action:hover {
    color: var(--gray-600);
}

/* Validation States */
.field-input.valid {
    border-color: var(--success);
}

.field-input.invalid {
    border-color: var(--error);
}

.field-status {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: var(--transition);
}

.field-input.has-action ~ .field-status {
    right: 52px;
}

.field-status.valid {
    color: var(--success);
    opacity: 1;
}

.field-status.invalid {
    color: var(--error);
    opacity: 1;
}

.field-hint {
    margin-top: 4px;
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
}

.field-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray-500);
    opacity: 0;
    transform: translateY(-4px);
    transition: var(--transition);
}

.field-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.field-feedback.error {
    color: var(--error);
}

.field-feedback.success {
    color: var(--success);
}

/* ==========================================
   Email with Domain
   ========================================== */

/* Email composite - legacy, now using input-group-suffix */

/* Input Group with Prefix/Suffix */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-addon {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
    user-select: none;
}

.input-group .field-input {
    flex: 1;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .field-input:focus {
    z-index: 1;
    position: relative;
}

/* Suffix variant (input first, addon last) */
.input-group-suffix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: var(--transition);
}

.input-group-suffix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.input-group-suffix .field-input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    height: 38px;
    background: transparent;
}

.input-group-suffix .field-input:focus {
    box-shadow: none;
}

@media (min-width: 640px) {
    .input-group-suffix .field-input {
        height: 40px;
    }
}

.input-group-suffix .input-addon-suffix {
    border: none;
    border-radius: 0;
    background: var(--gray-50);
    border-left: 1px solid var(--gray-200);
    flex-shrink: 0;
}

/* Both prefix and suffix variant */
.input-group-both {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: var(--transition);
}

.input-group-both:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

/* Input validation states */
.input-group-both.input-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-group-both.input-success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Hint text validation states */
.field-hint.hint-error {
    color: var(--error);
}

.field-hint.hint-success {
    color: var(--success);
    font-weight: 500;
}

.input-group-both .field-input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    height: 38px;
    background: transparent;
}

.input-group-both .field-input:focus {
    box-shadow: none;
}

@media (min-width: 640px) {
    .input-group-both .field-input {
        height: 40px;
    }
}

.input-group-both .input-addon {
    border: none;
    border-radius: 0;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.input-group-both .input-addon-suffix {
    border-right: none;
    border-left: 1px solid var(--gray-200);
    flex-shrink: 0;
}

/* ==========================================
   Phone Input
   ========================================== */

.phone-field .iti {
    width: 100%;
}

.phone-field .iti__tel-input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 85px;
    font-size: 13px;
    font-family: inherit;
    color: var(--gray-900);
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

@media (min-width: 640px) {
    .phone-field .iti__tel-input {
        height: 42px;
        font-size: 14px;
    }
}

.phone-field .iti__tel-input::placeholder {
    color: var(--gray-400);
}

.phone-field .iti__tel-input:hover {
    border-color: var(--gray-400);
}

.phone-field .iti__tel-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.phone-field .iti__country-container {
    padding-left: 12px;
}

.phone-field .iti__selected-country-primary {
    padding-right: 6px;
    background: transparent;
}

.phone-field .iti__selected-country {
    background: transparent;
    border-radius: 6px 0 0 6px;
}

.phone-field .iti__selected-country:hover,
.phone-field .iti__selected-country:focus {
    background: var(--gray-50);
}

.phone-field .iti__arrow {
    border: none;
    margin-left: 4px;
}

.phone-field .iti__arrow::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--gray-400);
}

.phone-field .iti__dropdown-content {
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.phone-field .iti__search-input {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    outline: none;
}

.phone-field .iti__search-input:focus {
    border-color: var(--primary);
}

.phone-field .iti__country-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.phone-field .iti__country-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
    width: 0;
    height: 0;
}

/* Hide scrollbar on dropdown content wrapper */
.phone-field .iti__dropdown-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.phone-field .iti__dropdown-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Global ITI scrollbar hiding */
.iti__country-list,
.iti__dropdown-content {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.iti__country-list::-webkit-scrollbar,
.iti__dropdown-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.phone-field .iti__country {
    padding: 10px 12px;
    font-size: 14px;
}

.phone-field .iti__country:hover,
.phone-field .iti__country--highlight {
    background: var(--gray-50);
}

/* ==========================================
   Password Strength
   ========================================== */

.password-strength {
    margin-top: 12px;
}

.strength-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.strength-segment {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    transition: var(--transition);
}

.strength-segment.weak { background: var(--error); }
.strength-segment.fair { background: var(--warning); }
.strength-segment.good { background: #22c55e; }
.strength-segment.strong { background: var(--success); }

.strength-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
}

.strength-label.weak { color: var(--error); }
.strength-label.fair { color: var(--warning); }
.strength-label.good { color: #22c55e; }
.strength-label.strong { color: var(--success); }

/* Password Requirements List */
.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    margin-top: 6px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--gray-400);
    transition: var(--transition);
    white-space: nowrap;
}

.requirement i {
    font-size: 6px;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    flex-shrink: 0;
}

.requirement.met {
    color: var(--success);
}

.requirement.met i {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    font-size: 6px;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    width: 100%;
    height: 40px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: 6px;
}

@media (min-width: 640px) {
    .btn {
        height: 42px;
        font-size: 14px;
    }
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}

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

/* ==========================================
   Checkbox
   ========================================== */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 16px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1.4;
    position: relative;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-label .checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.checkbox-label .checkmark svg {
    width: 10px;
    height: 10px;
    stroke: #fff;
    stroke-width: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}

.checkbox-label:hover .checkmark {
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.15);
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Remember Me */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    position: relative;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.remember-label .checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.remember-label .checkmark svg {
    width: 10px;
    height: 10px;
    stroke: #fff;
    stroke-width: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}

.remember-label:hover .checkmark {
    border-color: var(--accent);
}

.remember-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.remember-label input[type="checkbox"]:checked + .checkmark svg {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   Form Footer
   ========================================== */

.form-footer {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

.form-footer a {
    color: var(--gray-900);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   Toast Notifications
   ========================================== */

.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast-success {
    background: var(--success);
    color: #fff;
}

.toast-error {
    background: var(--error);
    color: #fff;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px;
    margin-left: 8px;
    opacity: 0.8;
}

.toast-close:hover { opacity: 1; }

/* ==========================================
   OTP Verification
   ========================================== */

.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 32px 0;
}

@media (min-width: 480px) {
    .otp-container {
        gap: 12px;
    }
}

.otp-input {
    width: 48px;
    height: 56px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: #fff;
    transition: var(--transition);
    color: var(--gray-900);
    outline: none;
}

@media (min-width: 480px) {
    .otp-input {
        width: 54px;
        height: 64px;
        font-size: 26px;
    }
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.otp-input.filled {
    border-color: var(--gray-900);
    background: var(--gray-50);
}

.verification-box {
    text-align: center;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.verification-box p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 4px;
}

.verification-box strong {
    color: var(--gray-900);
    font-size: 15px;
}

.resend-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.resend-section p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 12px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resend-btn:hover { text-decoration: underline; }
.resend-btn:disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    text-decoration: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 14px;
    text-decoration: none;
    margin-top: 16px;
}

.back-link:hover { color: var(--gray-900); }

/* ==========================================
   Loading Spinner
   ========================================== */

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   Verification Icon
   ========================================== */

.verification-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.verification-icon i {
    font-size: 28px;
    color: var(--success);
}

/* ==========================================
   Divider
   ========================================== */

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

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

.divider span {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

/* ==========================================
   Select / Dropdown
   ========================================== */

/* ==========================================
   Native Select Styling
   ========================================== */

select.input-field,
.input-field[type="select"],
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

select.input-field:focus,
select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e3a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

select.input-field option,
select option {
    padding: 12px;
    background: #fff;
    color: var(--gray-900);
}

select.input-field option:checked,
select option:checked {
    background: var(--gray-100);
}

/* ==========================================
   Custom Select Dropdown
   ========================================== */

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    color: var(--gray-900);
}

@media (min-width: 640px) {
    .select-trigger {
        height: 42px;
        font-size: 14px;
    }
}

.select-trigger:hover {
    border-color: var(--gray-400);
}

.select-trigger:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.select-trigger .chevron {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.select-trigger.open .chevron {
    transform: rotate(180deg);
}

.select-value {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-value.placeholder {
    color: var(--gray-400);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.select-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
    transition: background-color 0.1s ease;
}

.select-option:hover {
    background-color: var(--gray-50);
}

.select-option.selected {
    background-color: #eff6ff;
    color: var(--accent);
    font-weight: 500;
}

.select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.select-dropdown::-webkit-scrollbar-track {
    background: var(--gray-50);
    border-radius: 3px;
}

.select-dropdown::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ==========================================
   Custom Select Dropdown
   ========================================== */

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-900);
    cursor: pointer;
    transition: var(--transition);
    min-height: 42px;
}

.select-trigger:hover {
    border-color: var(--gray-300);
}

.select-trigger:focus,
.select-trigger.open {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.select-trigger .chevron {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.select-trigger.open .chevron {
    transform: rotate(180deg);
}

.select-value {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-value.placeholder {
    color: var(--gray-400);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s ease;
}

.select-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 0.625rem 1rem;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
    transition: background-color 0.1s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-option:hover {
    background-color: var(--gray-50);
}

.select-option.selected {
    background-color: rgba(30, 58, 95, 0.05);
    color: var(--primary);
    font-weight: 500;
}

.select-option .check-icon {
    width: 14px;
    height: 14px;
    opacity: 0;
    color: var(--primary);
}

.select-option.selected .check-icon {
    opacity: 1;
}

.select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.select-dropdown::-webkit-scrollbar-track {
    background: var(--gray-50);
    border-radius: 3px;
}

.select-dropdown::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ==========================================
   Custom Date Picker
   ========================================== */

.date-wrapper {
    position: relative;
}

.date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-900);
    cursor: pointer;
    transition: var(--transition);
    min-height: 42px;
}

.date-trigger:hover {
    border-color: var(--gray-300);
}

.date-trigger:focus,
.date-trigger.open {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.date-trigger .calendar-icon {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.date-trigger .date-value {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-trigger .date-value.placeholder {
    color: var(--gray-400);
}

.date-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s ease;
    min-width: 220px;
}

.date-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.calendar-header button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--gray-500);
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
}

.calendar-header button:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.calendar-header .month-year {
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-900);
    cursor: pointer;
}

.calendar-header .month-year:hover {
    color: var(--primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 0.25rem;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    padding: 0.25rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--gray-700);
    border: none;
    background: transparent;
}

.calendar-day:hover {
    background-color: var(--gray-100);
}

.calendar-day.other-month {
    color: var(--gray-300);
    cursor: default;
}

.calendar-day.other-month:hover {
    background-color: transparent;
}

.calendar-day.today {
    background-color: #dbeafe;
    color: #2563eb;
    font-weight: 600;
}

.calendar-day.selected {
    background-color: var(--primary) !important;
    color: white !important;
    font-weight: 600;
}

/* Calendar Years/Months Grid */
.calendar-years,
.calendar-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.calendar-year,
.calendar-month {
    padding: 8px 6px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 12px;
    color: var(--gray-700);
}

.calendar-year:hover,
.calendar-month:hover {
    background-color: var(--gray-100);
}

.calendar-year.selected,
.calendar-month.selected {
    background-color: var(--primary) !important;
    color: white !important;
    font-weight: 600;
}

.calendar-year.current,
.calendar-month.current {
    background-color: #dbeafe;
    color: #2563eb;
    font-weight: 600;
}

.calendar-year.other-decade {
    opacity: 0.4;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 10px;
    }
    
    .password-requirements {
        grid-template-columns: 1fr;
    }
}
