/* 15A Login/Signup Page - Styles Modernes */
/* ====================================== */

/* === VARIABLES === */
:root {
    --auth15a-primary: #667eea;
    --auth15a-secondary: #764ba2;
    --auth15a-accent: #f093fb;
    
    --auth15a-success: #27ae60;
    --auth15a-error: #e74c3c;
    --auth15a-warning: #f39c12;
    --auth15a-info: #3498db;
    
    --auth15a-text-primary: #2c3e50;
    --auth15a-text-secondary: #7f8c8d;
    --auth15a-text-light: #ffffff;
    
    --auth15a-bg-primary: #ffffff;
    --auth15a-bg-secondary: #f8f9fa;
    --auth15a-bg-dark: #2c3e50;
    
    --auth15a-border: #e1e5e9;
    --auth15a-border-radius: 10px;
    --auth15a-border-radius-lg: 20px;
    
    --auth15a-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --auth15a-shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --auth15a-shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --auth15a-shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
    
    --auth15a-transition: all 0.3s ease;
}

/* === CONTAINER PRINCIPAL === */
.auth15a-container {
    background: var(--auth15a-bg-primary);
    border-radius: var(--auth15a-border-radius-lg);
    box-shadow: var(--auth15a-shadow-xl);
    overflow: hidden;
    display: flex;
    min-height: 600px;
    max-width: 900px;
    margin: 0 auto;
}

/* === CÔTÉS === */
.auth15a-side {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.auth15a-login {
    background: linear-gradient(135deg, var(--auth15a-primary) 0%, var(--auth15a-secondary) 100%);
    color: var(--auth15a-text-light);
}

.auth15a-signup {
    background: var(--auth15a-bg-primary);
    color: var(--auth15a-text-primary);
}

.auth15a-side.hidden {
    display: none;
}

/* === HEADER === */
.auth15a-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth15a-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth15a-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.auth15a-header .logo-container {
    margin: 1.5rem auto;
    width: 72px;
    height: 72px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth15a-header .logo-container img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

/* === FORM GROUPS === */
.auth15a-form-group {
    margin-bottom: 1.5rem;
}

.auth15a-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* === PASSWORD WRAPPER === */
.auth15a-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth15a-password-wrapper .auth15a-input {
    padding-right: 3rem; /* Make room for the eye icon */
}

.auth15a-password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: var(--auth15a-transition);
    z-index: 10;
}

.auth15a-password-toggle:hover {
    opacity: 1;
}

.auth15a-password-toggle:focus {
    outline: none;
    opacity: 1;
}

.auth15a-eye-icon {
    width: 20px;
    height: 20px;
    user-select: none;
    pointer-events: none;
    display: block;
}

.auth15a-login .auth15a-password-toggle {
    color: var(--auth15a-text-light);
}

.auth15a-signup .auth15a-password-toggle {
    color: var(--auth15a-text-primary);
}

.auth15a-input,
.auth15a-input select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--auth15a-border);
    border-radius: var(--auth15a-border-radius);
    font-size: 1rem;
    transition: var(--auth15a-transition);
    background: var(--auth15a-bg-secondary);
    box-sizing: border-box;
}

select.auth15a-input {
    cursor: pointer;
}

.auth15a-input:focus {
    outline: none;
    border-color: var(--auth15a-primary);
    background: var(--auth15a-bg-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth15a-input.error {
    border-color: var(--auth15a-error);
    background: #fdf2f2;
}

.auth15a-login .auth15a-input {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--auth15a-text-light);
}

.auth15a-login .auth15a-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.auth15a-login .auth15a-input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* === MESSAGES D'ERREUR === */
.auth15a-error-message {
    color: var(--auth15a-error);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.auth15a-success-message {
    color: var(--auth15a-success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #d4edda;
    border-radius: var(--auth15a-border-radius);
    border: 1px solid #c3e6cb;
}

/* === BOUTONS === */
.auth15a-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--auth15a-border-radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--auth15a-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.auth15a-btn-primary {
    background: linear-gradient(135deg, var(--auth15a-primary) 0%, var(--auth15a-secondary) 100%);
    color: var(--auth15a-text-light);
}

.auth15a-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.auth15a-login .auth15a-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.auth15a-login .auth15a-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.auth15a-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === SWITCH FORM === */
.auth15a-switch-form {
    text-align: center;
    margin-top: 2rem;
}

.auth15a-switch-form a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
    transition: var(--auth15a-transition);
    cursor: pointer;
}

.auth15a-switch-form a:hover {
    opacity: 1;
}

/* === LOADING === */
.auth15a-loading {
    display: none;
    text-align: center;
    margin: 1.5rem 0;
}

.auth15a-loading.active {
    display: block;
}

.auth15a-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--auth15a-text-light);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: auth15a-spin 1s linear infinite;
    margin: 0 auto;
}

.auth15a-signup .auth15a-spinner {
    border-color: rgba(102, 126, 234, 0.3);
    border-top-color: var(--auth15a-primary);
}

@keyframes auth15a-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .auth15a-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .auth15a-side {
        padding: 2rem 1.5rem;
    }
    
    .auth15a-header h1 {
        font-size: 1.5rem;
    }
}

/* === PASSWORD STRENGTH === */
.auth15a-password-strength {
    margin-top: 0.25rem;
    height: 4px;
    background: var(--auth15a-border);
    border-radius: 2px;
    overflow: hidden;
}

.auth15a-password-strength-bar {
    height: 100%;
    width: 0%;
    transition: var(--auth15a-transition);
    border-radius: 2px;
}

.auth15a-strength-weak { background: var(--auth15a-error); }
.auth15a-strength-medium { background: var(--auth15a-warning); }
.auth15a-strength-strong { background: var(--auth15a-success); }

/* === PAGE LAYOUT === */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* === MODAL FOR EMAIL VERIFICATION WARNING === */
.auth15a-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.auth15a-modal-overlay.active {
    display: flex;
}

.auth15a-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.auth15a-modal-content h3 {
    color: var(--auth15a-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth15a-modal-content p {
    color: var(--auth15a-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.auth15a-modal-content .warning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth15a-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.auth15a-modal-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--auth15a-transition);
}

.auth15a-modal-btn-primary {
    background: linear-gradient(135deg, var(--auth15a-primary) 0%, var(--auth15a-secondary) 100%);
    color: white;
}

.auth15a-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.auth15a-modal-btn-secondary {
    background: #e1e5e9;
    color: var(--auth15a-text-primary);
}

.auth15a-modal-btn-secondary:hover {
    background: #d1d5d9;
}

