/**
 * CerveauVirtuel - Authentication Stylesheet
 */

/* ========== AUTH PAGE LAYOUT ========== */
.auth-page {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* ========== BRANDING SIDE ========== */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #38b2ac 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-branding-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.auth-branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 400px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-logo:hover {
    color: white;
}

.auth-tagline {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.auth-feature i {
    font-size: 1.25rem;
}

/* ========== FORM SIDE ========== */
.auth-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    max-width: 480px;
    margin: 0 auto;
}

.auth-form {
    width: 100%;
}

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.auth-form-subtitle {
    color: #718096;
    margin-bottom: 2rem;
}

/* ========== FORM ELEMENTS ========== */
.auth-form .form-label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.auth-form .input-group-text {
    background-color: #f7fafc;
    border-color: #e2e8f0;
    color: #718096;
}

.auth-form .form-control {
    border-color: #e2e8f0;
    padding: 0.625rem 0.875rem;
}

.auth-form .form-control:focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border: none;
    padding: 0.75rem;
    font-weight: 500;
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #0f1f38 0%, #1a365d 100%);
}

/* ========== SEPARATOR ========== */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #a0aec0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-separator span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* ========== QR CODE LOGIN ========== */
.qr-code-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 0.5rem;
}

.qr-placeholder {
    text-align: center;
}

.qr-code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-instructions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.instruction-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f7fafc;
    border-radius: 0.5rem;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #1a365d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ========== VERIFICATION CODE ========== */
.verification-code-inputs {
    display: flex;
    justify-content: center;
}

.verification-digit {
    width: 200px;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.5rem;
    padding: 1rem;
}

/* ========== FOOTER ========== */
.auth-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.auth-footer-links a {
    color: #718096;
    font-size: 0.875rem;
}

.auth-footer-links a:hover {
    color: #1a365d;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .auth-branding {
        display: none;
    }
    
    .auth-form-container {
        max-width: 100%;
        padding: 1.5rem;
    }
}
