/* resources/css/guest.css */

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

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --bg-dark: #0a0b10;
    --bg-card: rgba(30, 30, 63, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Reset & Base */
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Animé (Orbes) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    z-index: -1;
}

/* Container Principal */
.guest-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    perspective: 1000px;
}

/* La Carte (Glassmorphism) */
.guest-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Ligne décorative supérieure */
.guest-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Labels */
label, .auth-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

/* Inputs (x-text-input) */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    color: white !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

/* --- CORRECTIF CHECKBOX VISIBLE --- */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    vertical-align: middle;
}

input[type="checkbox"]:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.9rem;
    font-weight: 900;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Bouton Primaire (x-primary-button) */
button, .auth-btn {
    width: 100%;
    height: 50px;
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 14px !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5) !important;
    filter: brightness(1.1);
}

/* Liens */
a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Erreurs */
.mt-2, .x-input-error {
    font-size: 0.8rem;
    color: #f87171;
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

/* Bouton Retour */
.absolute a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: white !important;
    font-weight: 600;
    backdrop-filter: blur(10px);
    text-decoration: none !important;
}

.absolute a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(30px) rotateX(-5deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

@media (max-width: 480px) {
    .guest-wrapper { padding: 1rem; }
    .guest-card { padding: 2rem 1.5rem; border-radius: 20px; }
}
