/* Styles pour la navigation */
.auth-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.auth-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Styles pour la page de connexion */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
    padding-top: 100px; /* Ajout de padding pour compenser la navbar fixe */
}

.error-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-container h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    line-height: normal;
    text-align: center;
}

.message {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.email-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    margin-top: 0.5rem;
    text-align: center;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-container label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cgv-link {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.cgv-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.cgv-link:hover {
    opacity: 0.9;
}

.cgv-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 62, 255, 0.3);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.6);
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.google-sign-in {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.google-sign-in img {
    width: 20px;
    height: 20px;
}

.google-sign-in:hover {
    background-color: #f8f8f8;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.switch-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.switch-button:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Styles pour les erreurs de formulaire */
.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error .error-message {
    display: block;
}

.error .email-input {
    border-color: var(--error-color);
}

/* Media Queries pour la page de connexion */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .error-container {
        padding: 2rem;
    }

    .error-container h1 {
        font-size: 1.8rem;
    }

    .message {
        font-size: 1rem;
    }
}

/* Styles pour les toasts */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.toast.error {
    background: rgba(255, 0, 0, 0.8);
}

.toast.success {
    background: rgba(0, 128, 0, 0.8);
}

/* Animation pour le bouton Google */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Styles pour le message de confirmation */
.confirmation-message {
    text-align: center;
    padding: 0rem;
    animation: fadeIn 0.5s ease-out;
}

.confirmation-message h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.confirmation-message p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.email-animation {
    font-size: 2rem;
    margin-top: 2rem;
    animation: float 2s infinite ease-in-out;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Transition pour le formulaire */
.signup-form, .login-form {
    transition: opacity 0.3s ease;
}

.redirect-message {
    background: rgba(59, 62, 255, 0.1);
    border: 1px solid rgba(59, 62, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.redirect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.redirect-icon {
    font-size: 2rem;
}

.redirect-message h2 {
    color: #3B3EFF;
    font-size: 1.5rem;
    margin: 0;
}

.redirect-message p {
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adaptation mobile */
@media screen and (max-width: 768px) {
    .redirect-message {
        margin: 1rem;
        padding: 1rem;
    }

    .redirect-message h2 {
        font-size: 1.2rem;
    }
}

.plan-toast {
    position: absolute;
    top: 100px; /* Juste en dessous de la navbar */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: toastSlideDown 0.5s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.plan-toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.plan-toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.plan-toast-text {
    flex-grow: 1;
}

.plan-toast-text strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.plan-toast-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes toastSlideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Adaptation mobile */
@media screen and (max-width: 768px) {
    .plan-toast {
        width: calc(100% - 2rem);
        top: 80px;
    }
}

/* Style pour le reCAPTCHA */
.g-recaptcha {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

/* Adaptation mobile */
@media screen and (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
        margin: 10px auto;
    }
} 