/* ==========================================================================
   ShowAurora Customer Portal - Modern Dark Luxury Glassmorphism 2026
   Theme : Fond Dégradé En-tête ShowAurora (#2c3e50 -> #4a6491)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Palette En-tête ShowAurora */
    --header-bg-start: #1b2838;
    --header-bg-mid: #2c3e50;
    --header-bg-end: #4a6491;
    
    /* Éléments d'accentuation */
    --accent-blue: #38bdf8;
    --accent-blue-hover: #60a5fa;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
    --primary-glow: rgba(37, 99, 235, 0.45);
    
    /* Card Glassmorphism */
    --card-bg: rgba(30, 41, 59, 0.72);
    --card-border: rgba(255, 255, 255, 0.16);
    --card-border-glow: rgba(56, 189, 248, 0.3);
    --card-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.55), 0 0 40px rgba(74, 100, 145, 0.3);
    
    /* Typographie & Couleurs de texte */
    --text-heading: #ffffff;
    --text-body: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Inputs */
    --input-bg: rgba(15, 23, 42, 0.65);
    --input-border: rgba(255, 255, 255, 0.14);
    --input-border-focus: #38bdf8;
    --input-focus-glow: rgba(56, 189, 248, 0.25);
    
    /* Alertes */
    --error-bg: rgba(225, 29, 72, 0.16);
    --error-border: rgba(244, 63, 94, 0.4);
    --error-text: #fda4af;
    
    --success-bg: rgba(16, 185, 129, 0.16);
    --success-border: rgba(52, 211, 153, 0.4);
    --success-text: #a7f3d0;
    
    --info-bg: rgba(56, 189, 248, 0.15);
    --info-border: rgba(56, 189, 248, 0.35);
    --info-text: #bae6fd;
    
    --border-radius-card: 24px;
    --border-radius-input: 14px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-page {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--header-bg-start) 0%, var(--header-bg-mid) 50%, var(--header-bg-end) 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 32px 16px;
    color: var(--text-body);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Éléments de fond décoratifs animés (Lueurs ambiantes) */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: floatBlob 18s ease-in-out infinite alternate;
}

.blob-1 {
    top: -10%;
    left: 15%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.1) 70%);
}

.blob-2 {
    bottom: -15%;
    right: 10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(74, 100, 145, 0.45) 0%, rgba(44, 62, 80, 0.2) 70%);
    animation-duration: 22s;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    right: 30%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    animation-duration: 15s;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-30px) scale(1.08) rotate(45deg); }
    100% { transform: translateY(20px) scale(0.95) rotate(-30deg); }
}

/* Conteneur principal */
.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    margin: auto;
}

.auth-container.signup-container {
    max-width: 560px;
}

/* Carte Glassmorphism */
.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border-radius: var(--border-radius-card);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    overflow: hidden;
    transition: var(--transition);
    animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 35px 70px -12px rgba(0, 0, 0, 0.65), 0 0 50px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* En-tête de la carte */
.auth-header {
    text-align: center;
    padding: 40px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

.auth-logo-link {
    display: inline-block;
    text-decoration: none;
}

.auth-logo-badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px auto;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: var(--transition);
}

.auth-logo-badge:hover {
    transform: translateY(-3px) scale(1.08) rotate(-3deg);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.auth-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.auth-header h2 {
    font-family: 'Outfit', sans-serif;
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-header p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Corps du formulaire */
.auth-body {
    padding: 32px 32px 36px;
}

/* Alertes & Notifications */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.4;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-danger {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.2);
}

.alert-danger i {
    font-size: 1.15rem;
    color: #f43f5e;
    flex-shrink: 0;
}

.alert-info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info-text);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.18);
}

.alert-info i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

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

.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.form-col {
    flex: 1;
    min-width: 0;
}

@media (max-width: 580px) {
    .form-row {
        flex-direction: column;
        gap: 18px;
    }
}

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

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid var(--input-border);
    border-radius: var(--border-radius-input);
    font-family: inherit;
    font-size: 0.96rem;
    color: #ffffff;
    background: var(--input-bg);
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.form-input:focus {
    border-color: var(--input-border-focus);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 4px var(--input-focus-glow), 0 0 20px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--accent-blue);
    transform: scale(1.1);
}

/* Mot de passe avec toggle */
.password-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-group .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    z-index: 3;
}

.password-toggle:hover {
    color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

/* Actions & Checkbox */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    margin-top: -2px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    user-select: none;
    transition: var(--transition);
}

.remember-me:hover {
    color: var(--text-body);
}

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.remember-me input[type="checkbox"]:checked {
    background: #2563eb;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.remember-me input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-password {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--accent-blue-hover);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
    text-decoration: underline;
}

/* Bouton Soumettre */
.btn-primary {
    width: 100%;
    padding: 15px 24px;
    background: var(--primary-gradient);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-input);
    color: #ffffff;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 25px -4px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary i {
    font-size: 1.05rem;
    transition: transform 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.6), 0 0 25px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.08);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

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

/* Pied de carte */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer p {
    margin-bottom: 16px;
}

.auth-footer a {
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--accent-blue-hover);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
    text-decoration: underline;
}

.back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-shop i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.back-to-shop:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateX(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.back-to-shop:hover i {
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 480px) {
    body.auth-page {
        padding: 16px 12px;
    }
    .auth-header {
        padding: 30px 20px 20px;
    }
    .auth-header h2 {
        font-size: 1.5rem;
    }
    .auth-body {
        padding: 24px 20px 28px;
    }
}