/* Style principal pour la page de compte */
.wpsl-account-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wpsl-account-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    margin: 20px 0;
}

.wpsl-account-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wpsl-account-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    animation: wpsl-bg-move 60s linear infinite;
}

@keyframes wpsl-bg-move {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wpsl-site-logo {
    max-width: 80px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.wpsl-site-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wpsl-icon-create {
    font-size: 40px;
    animation: wpsl-float 3s ease-in-out infinite;
}

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

.wpsl-site-description {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 20px;
}

.wpsl-create-intro {
    font-size: 18px;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
    opacity: 0.95;
}

/* Onglets de basculement */
.wpsl-tab-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
    max-width: 500px;
    margin: 30px auto;
    backdrop-filter: blur(10px);
}

.wpsl-tab-switch-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 45px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wpsl-tab-switch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 45px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpsl-tab-switch-btn.active {
    color: #4f46e5;
}

.wpsl-tab-switch-btn.active::before {
    transform: scale(1);
}

.wpsl-tab-switch-btn span {
    position: relative;
    z-index: 1;
}

/* Panneaux d'onglets */
.wpsl-tab-panel {
    display: none;
    padding: 40px;
}

.wpsl-tab-panel.active {
    display: block;
    animation: wpsl-fadeInUp 0.6s ease;
}

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

/* Messages */
.wpsl-account-success,
.wpsl-account-error {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    animation: wpsl-slideIn 0.5s ease;
}

@keyframes wpsl-slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wpsl-account-success {
    background: linear-gradient(135deg, #d4f8d4 0%, #b8f1b8 100%);
    border: 2px solid #a3e4a3;
}

.wpsl-account-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #f8b4b4;
}

.wpsl-icon-success,
.wpsl-icon-error {
    font-size: 32px;
    flex-shrink: 0;
}

.wpsl-success-content h4,
.wpsl-error-content h4 {
    margin: 0 0 10px;
    font-size: 20px;
}

.wpsl-success-content p,
.wpsl-error-content p {
    margin: 0;
    line-height: 1.6;
}

/* Étapes du formulaire */
.wpsl-form-steps {
    position: relative;
    min-height: 400px;
}

.wpsl-step {
    display: none;
    animation: wpsl-stepFade 0.5s ease;
}

@keyframes wpsl-stepFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wpsl-step.active {
    display: block;
}

.wpsl-step.animate {
    animation: wpsl-stepSlide 0.5s ease;
}

@keyframes wpsl-stepSlide {
    from { 
        opacity: 0;
        transform: translateX(30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.wpsl-step-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 22px;
    color: #333;
    margin: 0 0 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wpsl-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Formulaires améliorés */
.wpsl-form-group {
    margin-bottom: 25px;
}

.wpsl-form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #495057;
    font-weight: 600;
    font-size: 15px;
}

.wpsl-label-icon {
    font-size: 18px;
    opacity: 0.8;
}

.wpsl-form-group input,
.wpsl-form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8fafc;
}

.wpsl-form-group input:focus,
.wpsl-form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.wpsl-form-group.has-error input,
.wpsl-form-group.has-error textarea {
    border-color: #ef4444;
    background: #fef2f2;
}

.wpsl-field-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: wpsl-errorShake 0.3s ease;
}

@keyframes wpsl-errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.wpsl-field-error::before {
    content: '⚠️';
    font-size: 14px;
}

.wpsl-field-description {
    font-size: 13px;
    color: #64748b;
    margin: 8px 0 0;
    font-style: italic;
}

/* Champs de mot de passe */
.wpsl-password-field {
    position: relative;
}

.wpsl-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
    padding: 8px;
    transition: color 0.3s;
}

.wpsl-toggle-password:hover {
    color: #4f46e5;
}

/* Indicateur de force du mot de passe */
.wpsl-password-strength {
    margin-top: 15px;
}

.wpsl-strength-meter {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wpsl-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.wpsl-strength-bar.weak {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.wpsl-strength-bar.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.wpsl-strength-bar.strong {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.wpsl-strength-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpsl-strength-text {
    font-weight: 600;
    font-size: 14px;
}

.wpsl-strength-rules {
    font-size: 12px;
    color: #64748b;
}

/* Navigation des étapes */
.wpsl-form-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.wpsl-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

.wpsl-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #94a3b8;
}

.wpsl-nav-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.wpsl-prev-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.wpsl-nav-icon {
    font-size: 18px;
}

/* Indicateur d'étapes */
.wpsl-step-indicator {
    display: flex;
    gap: 12px;
}

.wpsl-step-dot {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.wpsl-step-dot.active {
    background: #4f46e5;
    transform: scale(1.3);
}

.wpsl-step-dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    animation: wpsl-pulse 2s infinite;
}

@keyframes wpsl-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Bouton de soumission */
.wpsl-form-submit {
    text-align: center;
    margin-top: 40px;
    animation: wpsl-fadeIn 0.5s ease;
}

.wpsl-submit-button {
    padding: 18px 40px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.wpsl-submit-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.4);
}

.wpsl-submit-button:active {
    transform: translateY(-2px) scale(1.02);
}

.wpsl-button-icon {
    font-size: 22px;
    animation: wpsl-spin 3s linear infinite;
}

@keyframes wpsl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wpsl-form-note {
    font-size: 14px;
    color: #64748b;
    margin-top: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Case à cocher stylée */
.wpsl-checkbox-group {
    position: relative;
    margin: 20px 0;
}

.wpsl-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-weight: 500;
}

.wpsl-checkbox-group input[type="checkbox"] {
    display: none;
}

.wpsl-checkbox-group input[type="checkbox"] + .wpsl-checkbox-text::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 10px;
    vertical-align: middle;
    transition: all 0.3s;
}

.wpsl-checkbox-group input[type="checkbox"]:checked + .wpsl-checkbox-text::before {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4f46e5;
    content: '✓';
    color: white;
    text-align: center;
    line-height: 22px;
    font-size: 14px;
    font-weight: bold;
}

/* Boîte des conditions */
.wpsl-terms-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.wpsl-terms-content {
    margin-bottom: 25px;
}

.wpsl-terms-content h4 {
    color: #1e293b;
    margin: 0 0 15px;
    font-size: 18px;
}

.wpsl-terms-content ul {
    margin: 15px 0;
    padding-left: 20px;
    color: #475569;
}

.wpsl-terms-content li {
    margin: 8px 0;
    line-height: 1.5;
}

.wpsl-legal-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wpsl-legal-links a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border: 2px solid #4f46e5;
    border-radius: 8px;
    transition: all 0.3s;
}

.wpsl-legal-links a:hover {
    background: #4f46e5;
    color: white;
}

/* Inscription complète */
.wpsl-registration-complete {
    text-align: center;
    padding: 50px 30px;
}

.wpsl-complete-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: wpsl-bounce 1s ease infinite alternate;
}

@keyframes wpsl-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

.wpsl-registration-complete h3 {
    font-size: 32px;
    color: #1e293b;
    margin: 0 0 15px;
}

.wpsl-registration-complete p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.wpsl-complete-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Redirection vers la connexion */
.wpsl-login-redirect {
    text-align: center;
    padding: 50px 30px;
}

.wpsl-redirect-icon {
    font-size: 70px;
    margin-bottom: 20px;
    animation: wpsl-shake 2s ease infinite;
}

@keyframes wpsl-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.wpsl-login-redirect h3 {
    font-size: 28px;
    color: #1e293b;
    margin: 0 0 15px;
}

.wpsl-login-redirect p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Boutons d'action */
.wpsl-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    min-width: 200px;
}

.wpsl-home-btn {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.wpsl-login-btn,
.wpsl-login-redirect-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.wpsl-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.wpsl-redirect-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.wpsl-redirect-info p {
    margin: 0 0 10px;
    color: #64748b;
}

.wpsl-link-small {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.wpsl-link-small:hover {
    text-decoration: underline;
}

/* Footer de la page */
.wpsl-account-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 40px;
    border-top: 1px solid #e2e8f0;
}

.wpsl-account-benefits h4,
.wpsl-account-security h4 {
    color: #1e293b;
    margin: 0 0 20px;
    font-size: 18px;
}

.wpsl-account-benefits ul,
.wpsl-account-security ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpsl-account-benefits li,
.wpsl-account-security li {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 15px;
}

.wpsl-benefit-icon,
.wpsl-security-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.wpsl-benefit-icon {
    color: #10b981;
}

.wpsl-security-icon {
    color: #4f46e5;
}

/* Responsive */
@media (max-width: 768px) {
    .wpsl-account-box {
        border-radius: 15px;
        margin: 10px;
    }
    
    .wpsl-account-header {
        padding: 30px 20px;
    }
    
    .wpsl-site-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }
    
    .wpsl-icon-create {
        font-size: 32px;
    }
    
    .wpsl-tab-switch {
        flex-direction: column;
        border-radius: 12px;
        padding: 10px;
    }
    
    .wpsl-tab-switch-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .wpsl-tab-panel {
        padding: 25px;
    }
    
    .wpsl-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .wpsl-form-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .wpsl-nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wpsl-step-indicator {
        order: -1;
    }
    
    .wpsl-account-footer {
        grid-template-columns: 1fr;
        padding: 30px 25px;
    }
    
    .wpsl-complete-actions,
    .wpsl-legal-links {
        flex-direction: column;
    }
    
    .wpsl-action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wpsl-account-container {
        padding: 10px;
    }
    
    .wpsl-site-title {
        font-size: 24px;
    }
    
    .wpsl-tab-panel {
        padding: 20px 15px;
    }
    
    .wpsl-step-title {
        font-size: 20px;
    }
    
    .wpsl-form-group input,
    .wpsl-form-group textarea {
        padding: 14px;
        font-size: 15px;
    }
    
    .wpsl-submit-button {
        width: 100%;
        min-width: auto;
    }
}

/* Animation de chargement */
.wpsl-loading {
    position: relative;
    pointer-events: none;
}

.wpsl-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wpsl-loading-spin 0.8s linear infinite;
}

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