/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fefcf0, #fef9e7);
    padding: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1100px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    min-height: 550px;
}

/* ============================================
   LEFT - BRAND SECTION
   ============================================ */
.login-brand {
    background: #0b1a33;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05), transparent 70%);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
}

.brand-logo i {
    color: #fbbf24;
}

.brand-logo .highlight {
    color: #fbbf24;
}

.brand-illustration {
    font-size: 5rem;
    color: #fbbf24;
    opacity: 0.15;
    margin-bottom: 24px;
}

.brand-content h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.brand-content p {
    color: #b8c9e0;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 380px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b8c9e0;
    font-size: 0.95rem;
}

.feature-item i {
    color: #fbbf24;
    font-size: 1.1rem;
}

/* ============================================
   RIGHT - FORM SECTION
   ============================================ */
.login-form-wrapper {
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b1a33;
    margin: 0 0 4px;
}

.form-header p {
    color: #4a5f7a;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d4059;
    margin-bottom: 4px;
}

.required {
    color: #fc8181;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 10px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #fbbf24;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.input-wrapper.error {
    border-color: #fc8181;
    background: #fff5f5;
}

.input-wrapper.error:focus-within {
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1);
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.input-wrapper .form-input {
    width: 100%;
    padding: 12px 52px 12px 42px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: transparent;
    color: #2d4059;
    font-family: inherit;
    outline: none;
    line-height: 1.5;
}

.input-wrapper .form-input::placeholder {
    color: #a0aec0;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 1rem;
    transition: 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 4px;
    width: 32px;
    height: 32px;
}

.password-toggle:hover {
    color: #4a5f7a;
    background: rgba(0, 0, 0, 0.04);
}

.password-toggle:focus {
    outline: none;
}

.password-toggle i {
    font-size: 1rem;
    line-height: 1;
}

/* ============================================
   FORM OPTIONS
   ============================================ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5f7a;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    background: #ffffff;
}

.checkbox-label:hover .checkmark {
    border-color: #fbbf24;
}

.checkbox-label input:checked + .checkmark {
    background: #fbbf24;
    border-color: #fbbf24;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0b1a33;
    font-weight: 700;
    font-size: 12px;
}

.forgot-link {
    color: #a0aec0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
}

.forgot-link:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #fbbf24;
    color: #0b1a33;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: inline;
}

/* ============================================
   FORM FOOTER
   ============================================ */
.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #4a5f7a;
}

.form-footer a {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   FORM ERROR
   ============================================ */
.form-error {
    font-size: 0.8rem;
    color: #fc8181;
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

/* ============================================
   VERIFICATION MODAL
   ============================================ */
.modal-icon {
    text-align: center;
    margin-bottom: 16px;
}

.modal-icon i {
    font-size: 3rem;
    color: #fbbf24;
}

.modal-confirm h4 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #0b1a33;
}

.modal-confirm p {
    text-align: center;
    color: #4a5f7a;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.modal-actions .btn-primary {
    background: #fbbf24;
    color: #0b1a33;
}

.modal-actions .btn-primary:hover {
    background: #f59e0b;
}

.modal-actions .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.modal-actions .btn-secondary:hover {
    background: #cbd5e0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 550px;
    }
    
    .login-brand {
        padding: 32px 30px;
        text-align: center;
    }
    
    .brand-content p {
        max-width: 100%;
        margin: 0 auto 20px;
    }
    
    .brand-features {
        align-items: center;
    }
    
    .login-form-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 10px;
    }
    
    .login-container {
        border-radius: 16px;
    }
    
    .login-brand {
        padding: 24px 20px;
    }
    
    .brand-logo {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .brand-illustration {
        font-size: 3rem;
        margin-bottom: 16px;
    }
    
    .brand-content h2 {
        font-size: 1.4rem;
    }
    
    .login-form-wrapper {
        padding: 24px 16px;
    }
    
    .form-header h1 {
        font-size: 1.4rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .login-brand {
        padding: 16px 16px;
    }
    
    .login-form-wrapper {
        padding: 16px 12px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .input-wrapper .form-input {
        padding: 10px 46px 10px 36px;
        font-size: 0.9rem;
    }
    
    .input-wrapper .input-icon {
        left: 10px;
        font-size: 0.9rem;
        width: 16px;
    }
    
    .password-toggle {
        right: 8px;
        padding: 2px 4px;
        font-size: 0.9rem;
        width: 28px;
        height: 28px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}