/**
 * LOGIN & REGISTER - STYLES
 * Système d'authentification EcoMove Mobility
 */

/* ============================================
   LAYOUT GÉNÉRAL
   ============================================ */
.login-page {
    background: linear-gradient(135deg, #0f2635 0%, #1a3a52 50%, #2d5575 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-simple {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-simple .logo {
    display: flex;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 900;
}

.navbar-simple .logo-eco {
    color: #1a3a52;
    text-shadow: 2px 2px 0px #44F0E0;
}

.navbar-simple .logo-move {
    color: #10b981;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    max-width: 1400px;
    width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-height: 700px;
}

/* ============================================
   PANNEAU GAUCHE - INFORMATIONS
   ============================================ */
.login-info {
    background: linear-gradient(135deg, #1a3a52 0%, #0f2635 100%);
    color: white;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.info-content .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: #44F0E0;
    min-width: 40px;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

.stats-mini {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(68, 240, 224, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(68, 240, 224, 0.2);
}

.stat-mini {
    flex: 1;
    text-align: center;
}

.stat-mini strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #44F0E0;
    margin-bottom: 0.5rem;
}

.stat-mini span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   PANNEAU DROIT - FORMULAIRES
   ============================================ */
.login-forms {
    padding: 4rem;
    overflow-y: auto;
}

/* Onglets */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: #1a3a52;
    background: #f1f5f9;
}

.tab-btn.active {
    color: #1a3a52;
    border-bottom-color: #44F0E0;
}

/* Contenu des onglets */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: #1a3a52;
}

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

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

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #1a3a52;
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #44F0E0;
    box-shadow: 0 0 0 3px rgba(68, 240, 224, 0.1);
}

.form-group small {
    font-size: 0.85rem;
    color: #64748b;
}

/* Password Input */
.password-input {
    position: relative;
    display: flex;
}

.password-input input {
    flex: 1;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #1a3a52;
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #1a3a52;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #44F0E0;
}

/* Types de compte */
.account-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.radio-card {
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.radio-card-content i {
    font-size: 2rem;
    color: #64748b;
    display: block;
    margin-bottom: 0.75rem;
}

.radio-card-content span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.radio-card input:checked + .radio-card-content {
    border-color: #44F0E0;
    background: rgba(68, 240, 224, 0.05);
}

.radio-card input:checked + .radio-card-content i {
    color: #1a3a52;
}

.radio-card input:checked + .radio-card-content span {
    color: #1a3a52;
}

/* Boutons */
.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

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

.divider span {
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Switch Form */
.switch-form {
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 1rem;
}

.switch-form a {
    color: #1a3a52;
    font-weight: 700;
    text-decoration: none;
}

.switch-form a:hover {
    color: #44F0E0;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(68, 240, 224, 0.2);
    border-top-color: #44F0E0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    color: white;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .login-info {
        display: none;
    }

    .login-forms {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .login-wrapper {
        border-radius: 16px;
    }

    .login-forms {
        padding: 2rem 1.5rem;
    }

    .tab-content h2 {
        font-size: 1.75rem;
    }

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

    .account-types {
        grid-template-columns: 1fr;
    }

    .tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        font-size: 1rem;
        padding: 0.875rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .tab-content h2 {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }

    .btn-block {
        font-size: 1rem;
    }
}
