/* ===================================
   PAGE D'AUTHENTIFICATION DRAFT
   Design moderne et épuré
   =================================== */

.draft-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Carte principale */
.draft-auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 100%;
    padding: 48px 40px;
    animation: slideIn 0.4s ease-out;
}

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

/* Header avec logo */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 1s ease-in-out;
}

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

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Onglets */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab:hover {
    color: #1f2937;
}

.auth-tab.active {
    background: white;
    color: #2c5364;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Contenu des onglets */
.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

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

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

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

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

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #2c5364;
    box-shadow: 0 0 0 3px rgba(44, 83, 100, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Messages */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Bouton de soumission */
.auth-submit-btn {
    background: linear-gradient(135deg, #2c5364 0%, #0f2027 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 83, 100, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 480px) {
    .draft-auth-card {
        padding: 32px 24px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-logo {
        font-size: 48px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Masquer les éléments WordPress par défaut */
.draft-auth-container ~ * {
    display: none;
}

/* Forcer le body en pleine largeur */
body.page .draft-auth-container {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* Réinitialiser les conteneurs WordPress */
.page .site-content,
.page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* ===================================
   CHAMPS DE CODE DE VÉRIFICATION
   =================================== */

.code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.code-digit:focus {
    outline: none;
    border-color: #2c5364;
    box-shadow: 0 0 0 3px rgba(44, 83, 100, 0.1);
    transform: scale(1.05);
}

.code-digit:not(:placeholder-shown) {
    background: #f0fdf4;
    border-color: #10b981;
}

/* Bouton de renvoi */
.resend-btn {
    background: transparent;
    color: #2c5364;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.resend-btn:hover:not(:disabled) {
    background: #f3f4f6;
}

.resend-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.resend-btn .countdown {
    color: #6b7280;
}

/* ===================================
   ÉCRAN DE VÉRIFICATION
   =================================== */

.verification-container {
    animation: fadeIn 0.4s ease-in;
}

/* ===================================
   LIEN MOT DE PASSE OUBLIÉ
   =================================== */

.forgot-password-link:hover {
    text-decoration: underline;
}

.back-to-login-link:hover {
    text-decoration: underline;
}

/* ===================================
   ANIMATIONS SUPPLÉMENTAIRES
   =================================== */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-message.error {
    animation: shake 0.5s;
}

/* Mobile responsive pour les champs de code */
@media (max-width: 480px) {
    .code-digit {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }
    
    .verification-code-inputs {
        gap: 6px !important;
    }
}
