/* ===========================
   AUTH STYLES - LOGIN & REGISTER
   =========================== */

/* ===========================
   HEADER & NAVIGATION FIX
   =========================== */
/* Force l'alignement à gauche pour les pages d'auth */
.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Tout caler à gauche */
    gap: 0 !important; /* On gère les espaces manuellement */
}

/* Logo : Collé à gauche */
.logo {
    margin-right: 0 !important;
    flex-shrink: 0;
    order: 1;
}

/* Sélecteur de langue : À 20px du logo */
.auth-lang-selector {
    margin-left: 20px !important;
    display: block !important;
    order: 2;
}

/* Style du bouton langue (copie du style global pour cohérence) */
.lang-dropdown-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

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

/* Menu déroulant langue */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 10px;
    padding: 8px;
    min-width: 140px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-option img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.lang-option span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* ===========================
   AUTH SECTION
   =========================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    color: #666;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-group input:focus {
    outline: none;
    border-color: #667EEA;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    padding: 4px;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: #667EEA;
}

.password-hint {
    font-size: 12px;
    color: #666;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
}

.forgot-password {
    font-size: 14px;
    color: #667EEA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5568c9;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-redirect {
    text-align: center;
    padding-top: 10px;
}

.auth-redirect p {
    font-size: 14px;
    color: #666;
}

.auth-redirect a {
    color: #667EEA;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-redirect a:hover {
    color: #5568c9;
    text-decoration: underline;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px 20px;
}

.success-message svg {
    color: #27ae60;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 24px;
    color: #27ae60;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ===========================
   FOOTER STYLES
   =========================== */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    padding: 30px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Brand */
.footer-brand {
    text-align: center;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Footer Columns */
.footer-col {
    text-align: center;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--yellow);
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-copyright a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===========================
   MEDIA QUERIES
   =========================== */

/* Mobile Screens - 320px */
@media (max-width: 320px) {
    .auth-lang-selector {
        margin-left: 15px !important;
    }

    .footer-logo {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .footer-tagline {
        font-size: 13px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .footer-links {
        gap: 5px;
    }

    .footer-links li a {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 10px;
    }

    .footer-copyright {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

/* Mobile Screens - up to 767px */
@media (max-width: 767px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .auth-section {
        padding: 120px 15px 40px;
    }

    .footer-logo {
        font-size: 32px;
        margin-bottom: 5px;
    }

    .footer-title {
        margin-bottom: 5px;
    }

    .footer-links {
        gap: 5px;
    }
}

/* Tablet Portrait - 768px exact */
@media (min-width: 768px) and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

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

    .footer-logo {
        font-size: 36px;
    }

    .footer-tagline {
        font-size: 18px;
    }
}

/* Tablet - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer {
        padding: 80px 0 40px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
        align-items: start;
    }

    .footer-brand {
        grid-column: auto;
        text-align: left;
    }

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

    .footer-logo {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .footer-tagline {
        font-size: 16px;
        max-width: 350px;
    }

    .footer-links li a:hover {
        transform: translateX(10px);
    }
}

/* Desktop - 1025px and up */
@media (min-width: 1025px) {
    .footer {
        padding: 80px 0 40px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
        align-items: start;
    }

    .footer-brand {
        grid-column: auto;
        text-align: left;
    }

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

    .footer-logo {
        font-size: 40px;
    }

    .footer-tagline {
        font-size: 18px;
        max-width: 350px;
    }

    .footer-links li a:hover {
        transform: translateX(10px);
    }
}