.login-section {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.login-content {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary-dark) !important;
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.login-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}

.subtitle {
    text-align: center;
    color: #cccccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
}

.google-login {
    background: #ffffff;
    color: var(--color-primary-dark);
}

.google-login:hover {
    background: #f5f5f5;
}

.email-login {
    color: var(--color-primary-dark);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 500;
}

.form-group input {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.15);
}

.submit-button {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.submit-button:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.switch-form {
    text-align: center;
    margin-top: 1.5rem;
    color: #cccccc;
}

.switch-form a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.switch-form a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.error-message {
    background: #fff3f3;
    color: #b71c1c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
    border: 2px solid #ff4444;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255,0,0,0.08);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-section {
        padding: 1rem;
    }

    .login-content {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .login-button {
        padding: 0.9rem 1.2rem;
    }
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #ffffff;
}

.toggle-password i {
    font-size: 1.1rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 1.2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    margin-top: 1rem;
    text-align: center;
}

.loading-logs {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    max-width: 80%;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.account-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 48px 0 64px 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.account-content {
    background: var(--color-primary-light);
    color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xxl);
    box-shadow: 0 8px 32px rgba(44, 85, 69, 0.10), var(--shadow-md);
    margin: 0 auto;
    max-width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-title, .form-group label, .switch-form * {
    color: var(--color-white) !important;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Bouton principal jaune doré (accent) */
.submit-button, .login-button, .submit-button:active {
    background: var(--color-accent);
    color: var(--color-primary-dark) !important;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.submit-button:hover, .login-button:hover {
    background: #c09364;
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Inputs sur fond vert : fond blanc, texte foncé */
.form-group input {
    background: var(--color-white);
    color: var(--color-primary-dark);
    border: 1px solid rgba(255,255,255,0.2);
}
.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fffbe6;
}

/* Placeholder couleur foncée pour la lisibilité */
.form-group input::placeholder {
    color: #888;
    opacity: 1;
}

/* Erreur : fond rouge pâle, texte rouge foncé */
.error-message {
    background: rgba(255, 0, 0, 0.15);
    color: #b71c1c;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

/* Overlay de chargement : texte blanc */
.loading-overlay {
    color: var(--color-white);
}

/* Responsive ajusté */
@media (max-width: 480px) {
    .account-content {
        padding: var(--spacing-lg);
    }
    .account-container {
        padding: 24px 0 32px 0;
    }
}

.password-criteria {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    font-size: 0.95rem;
}
.password-criteria li {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.2em;
    transition: color 0.2s;
}
.password-criteria li.valid {
    color: var(--color-success);
    font-weight: 700;
    background: rgba(76, 175, 80, 0.10); /* vert pâle de fond */
    border-radius: 0.4em;
    padding: 0.15em 0.5em;
    transition: background 0.2s, color 0.2s;
}
.password-criteria li.valid::before {
    content: '\2714'; /* checkmark */
    color: var(--color-success);
    font-weight: bold;
    margin-right: 0.5em;
    filter: drop-shadow(0 0 2px #fff);
}
.password-criteria li.invalid {
    color: var(--color-error);
    font-weight: 700;
    background: rgba(244, 67, 54, 0.13); /* rouge pâle de fond */
    border-radius: 0.4em;
    padding: 0.15em 0.5em;
    transition: background 0.2s, color 0.2s;
}
.password-criteria li.invalid::before {
    content: '\2716'; /* cross */
    color: var(--color-error);
    font-weight: bold;
    margin-right: 0.5em;
    filter: drop-shadow(0 0 2px #fff);
}

.confirm-password-error-message {
    color: var(--color-error);
    background: rgba(244, 67, 54, 0.13);
    border-left: 4px solid var(--color-error);
    border-radius: 0.4em;
    font-weight: 600;
    margin-top: 0.4em;
    padding: 0.5em 0.8em;
    font-size: 0.97em;
    box-shadow: 0 2px 8px rgba(244,67,54,0.06);
    transition: background 0.2s, color 0.2s;
    display: block;
}

.signup-email-error-message {
    color: var(--color-error);
    background: rgba(244, 67, 54, 0.13);
    border-left: 4px solid var(--color-error);
    border-radius: 0.4em;
    font-weight: 600;
    margin-top: 0.4em;
    padding: 0.5em 0.8em;
    font-size: 0.97em;
    box-shadow: 0 2px 8px rgba(244,67,54,0.06);
    transition: background 0.2s, color 0.2s;
    display: block;
}

.login-error-message {
    color: var(--color-error);
    background: rgba(244, 67, 54, 0.16);
    border-left: 4px solid var(--color-error);
    border-radius: 0.4em;
    font-weight: 600;
    margin-top: 0.4em;
    margin-bottom: 0.7em;
    padding: 0.5em 0.8em;
    font-size: 0.97em;
    box-shadow: 0 2px 8px rgba(244,67,54,0.08);
    transition: background 0.2s, color 0.2s;
    display: block;
} 