/* ========================================
   Cabinet ANL - Pages d'authentification
   ======================================== */

:root {
    --primary-dark-blue: #1a365d;
    --secondary-dark-blue: #2d3748;
    --gold: #d4af37;
    --light-gold: #f7e98e;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --gray-light: #f8f9fa;
    --border-color: #e9ecef;
}

/* Auth Hero Section */
.auth-hero {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.auth-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 4rem;
    width: 100%;
    max-width: 1200px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.8rem;
    color: var(--gold);
}

.auth-logo svg {
    width: 100%;
    height: 100%;
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

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

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--light-gold);
}

.auth-btn {
    background-color: var(--gold);
    color: var(--primary-dark-blue);
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-btn:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    background-color: var(--white);
    color: var(--text-light);
    padding: 0 1rem;
    font-size: 0.9rem;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--light-gold);
}

.terms-link {
    color: var(--gold);
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .auth-hero {
        padding: 2rem 0;
    }

    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
    }

    .form-input {
        padding: 0.7rem 0.8rem;
    }

    .auth-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Layout en deux colonnes */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: fit-content;
}

/* Sections du formulaire */
.form-section {
    margin-bottom: 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    flex: 1;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--light-gold);
    border-radius: 2px;
}

/* Photo Upload */
.photo-upload {
    text-align: center;
    padding: 1rem;
}

.photo-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border: 3px dashed var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-light) 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.photo-preview:hover {
    border-color: var(--primary-dark-blue);
    transform: scale(1.05);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.photo-placeholder {
    text-align: center;
    color: var(--text-light);
}

.photo-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.photo-placeholder p {
    font-size: 0.875rem;
    margin: 0;
}

.photo-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.photo-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    min-width: 120px;
    justify-content: center;
}

.photo-btn.capture {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--secondary-dark-blue) 100%);
    color: var(--white);
    box-shadow: 0 3px 8px rgba(26, 54, 93, 0.3);
}

.photo-btn.capture:hover {
    background: linear-gradient(135deg, var(--secondary-dark-blue) 0%, var(--primary-dark-blue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(26, 54, 93, 0.4);
}

.photo-btn.upload {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--white);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
}

.photo-btn.upload:hover {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.photo-btn svg {
    width: 18px;
    height: 18px;
}

/* Modal pour capture photo */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.photo-modal.active {
    display: flex;
}

.photo-modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.photo-modal h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark-blue);
}

.photo-modal video {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.photo-modal canvas {
    display: none;
}

.photo-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.photo-modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-modal-btn.capture {
    background: var(--gold);
    color: var(--white);
}

.photo-modal-btn.cancel {
    background: var(--text-light);
    color: var(--white);
}

.photo-modal-btn:hover {
    transform: translateY(-2px);
}

/* Amélioration des champs de formulaire */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark-blue);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.form-input:hover {
    border-color: var(--primary-dark-blue);
}

/* Responsive pour les nouvelles sections */
@media (max-width: 768px) {
    .auth-container {
        padding: 0 1rem;
    }
    
    .auth-card {
        padding: 2rem;
        max-width: 100%;
    }
    
    .form-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-column {
        gap: 1rem;
    }
    
    .photo-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .photo-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .form-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 0 0.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .form-layout {
        gap: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}
