/**
 * Authentication Pages CSS
 * Unified styling for login, register, forgot-password, reset-password
 */

/* Base styles */
body {
    background-color: #f8f9fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Auth container - main layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth card - main content wrapper */
.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Large auth card - for multi-step forms like register */
.auth-card-large {
    max-width: 800px;
}

/* Brand logo section */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.brand-logo img {
    height: 60px;
    margin-right: 8px;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0066cc;
    margin: 0;
}

/* Form titles and subtitles */
.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.form-title-large {
    font-size: 1.5rem;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.form-subtitle-small {
    font-size: 0.65rem;
}

/* Form groups and labels */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.form-label-medium {
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

/* Form controls */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f1f5f9;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #0066cc;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

.form-control-simple {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-control-simple:focus {
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

/* Primary buttons */
.btn-primary2 {
    padding: 12px 24px;
    background: #0066cc;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

.btn-primary2:hover {
    background: #0052a3;
    transform: translateY(-1px);
    color: white;
}

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

.btn-primary2:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Secondary buttons */
.btn-secondary2 {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

.btn-secondary2:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: black;
}

/* Links */
.auth-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Progress indicators */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.progress-step.active {
    color: #0066cc;
    font-weight: 600;
}

.progress-step::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    margin-right: 8px;
}

.progress-step.active::before {
    background: #0066cc;
}

/* BS Stepper Customization (for register page) */
.bs-stepper .step-trigger {
    padding: 12px !important;
    flex-wrap: wrap;
    margin: 0;
}

.bs-stepper-header {
    border-radius: 6px;
    background: #f8f9fa;
    padding: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.bs-stepper-circle {
    background: #0066cc;
    color: white;
}

.step.active .bs-stepper-circle {
    background: #0052a3;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Loading state */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-card {
        padding: 30px;
        margin: 10px;
    }
    
    .auth-card-large {
        padding: 30px;
        margin: 10px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .form-title-large {
        font-size: 1.5rem;
    }
    
    /* BS Stepper mobile optimization */
    .bs-stepper-header {
        margin: 0 -10px;
        padding: 8px 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .bs-stepper .step-trigger {
        min-width: 120px;
        padding: 8px !important;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px;
    }
    
    .auth-card-large {
        padding: 20px;
    }
    
    .brand-logo {
        margin-bottom: 20px;
    }
    
    .form-title {
        font-size: 1.2rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
} 