/* ===================================================
   BULDAM — Login Page CSS
   Polices : stack système (pas de Google Fonts)
   =================================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #0f172a;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Wrapper pour les icônes SVG inline (remplacent Font Awesome) */
i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

i svg {
    display: block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* Spinner pour le chargement */
@keyframes icon-spin {
    to { transform: rotate(360deg); }
}
.icon-spin {
    animation: icon-spin 0.8s linear infinite;
}

/* ===== ANIMATED BACKGROUND - Particules & Effets ===== */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
    will-change: transform, opacity;
    contain: strict;
}

.particle:nth-child(1) { width: 6px; height: 6px; left: 10%; animation-duration: 20s; animation-delay: 0s; background: rgba(255,255,255,0.6); }
.particle:nth-child(2) { width: 8px; height: 8px; left: 25%; animation-duration: 25s; animation-delay: 2s; background: rgba(251,191,36,0.5); }
.particle:nth-child(3) { width: 5px; height: 5px; left: 40%; animation-duration: 18s; animation-delay: 4s; background: rgba(255,255,255,0.7); }
.particle:nth-child(4) { width: 10px; height: 10px; left: 55%; animation-duration: 22s; animation-delay: 1s; background: rgba(139,92,246,0.4); }
.particle:nth-child(5) { width: 7px; height: 7px; left: 70%; animation-duration: 28s; animation-delay: 3s; background: rgba(255,255,255,0.5); }
.particle:nth-child(6) { width: 6px; height: 6px; left: 85%; animation-duration: 19s; animation-delay: 5s; background: rgba(251,191,36,0.6); }

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.geo-shape {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.1);
    animation: floatShape ease-in-out infinite;
    will-change: transform;
    contain: layout;
}

.geo-shape:nth-child(7) { width: 100px; height: 100px; top: 10%; left: 5%; border-radius: 30%; animation-duration: 20s; }
.geo-shape:nth-child(8) { width: 150px; height: 150px; top: 60%; right: 5%; border-radius: 50%; animation-duration: 25s; animation-delay: 2s; }

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
}

.light-beam {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
    animation: lightBeam 8s ease-in-out infinite;
    will-change: transform, opacity;
    contain: strict;
}

.light-beam:nth-child(9) { left: 30%; animation-delay: 0s; }
.light-beam:nth-child(10) { left: 70%; animation-delay: 3s; }

@keyframes lightBeam {
    0%, 100% { transform: translateY(-200px) scaleY(0); opacity: 0; }
    50% { transform: translateY(100vh) scaleY(1); opacity: 1; }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

header.scrolled .logo {
    color: var(--primary);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.3), transparent 30%);
    animation: logoSpin 4s linear infinite;
    will-change: transform;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 12px;
}

@keyframes logoSpin {
    to { transform: rotate(360deg); }
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(99, 102, 241, 0.4);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

header.scrolled .nav-links a {
    color: var(--gray-700);
}

.nav-links a:hover {
    color: white;
}

header.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

header.scrolled .nav-links a::after {
    background: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #fbbf24;
    font-size: 1rem;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 30%, #fcd34d 60%, #fbbf24 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 4s linear infinite;
    position: relative;
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fcd34d);
    border-radius: 2px;
    animation: underlineGrow 1s ease 0.5s backwards;
}

@keyframes underlineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.stat-item {
    text-align: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== LOGIN CARD ===== */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 28px;
    padding: 48px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 -20px 40px rgba(99, 102, 241, 0.1) inset;
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    will-change: transform;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 0 60px rgba(99, 102, 241, 0.1);
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        #6366f1 0%,
        #8b5cf6 20%,
        #a855f7 40%,
        #f59e0b 60%,
        #f97316 80%,
        #ef4444 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.login-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 60%
    );
    pointer-events: none;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    transition: transform 1.5s ease;
}

.login-card:hover::after {
    transform: translateX(50%) translateY(50%) rotate(45deg);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

/* Icône / logo app dans la card login */
.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
    background: var(--gradient); /* fallback si l'image ne charge pas */
    color: white;
    font-size: 1.8rem;
}
.login-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-header h2 {
    font-size: 1.9rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: shake 0.5s ease;
}

.alert-danger {
    background: #fff5f5;
    color: var(--danger);
    border: 1px solid #fed7d7;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    isolation: isolate; /* stacking context propre — empêche l'input de passer au-dessus du bouton */
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gray-100);
    position: relative;
    z-index: 0; /* explicite — le bouton toggle (z-index:2) sera toujours au-dessus */
}

.form-group input:hover {
    border-color: var(--gray-300);
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.1),
        0 4px 20px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.form-group input:focus + i,
.input-wrapper:focus-within i {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

.form-group input:valid:not(:placeholder-shown) + i {
    color: var(--success);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 0.92rem;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.btn {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.4),
        0 0 0 0 rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(99, 102, 241, 0.5),
        0 0 0 4px rgba(99, 102, 241, 0.2);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 0 0 2px rgba(99, 102, 241, 0.3);
}

.btn-primary i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.divider span {
    padding: 0 20px;
    position: relative;
}

.divider span::before,
.divider span::after {
    content: '✨';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    animation: sparkle 2s ease infinite;
}

.divider span::before { left: 4px; }
.divider span::after { right: 4px; animation-delay: 1s; }

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(0.8); }
}

/* Bouton Enseignant */
.btn-teacher {
    width: 100%;
    padding: 18px 28px;
    background: var(--gradient-warm);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow:
        0 4px 20px rgba(245, 158, 11, 0.4),
        0 0 0 0 rgba(245, 158, 11, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-teacher::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-teacher:hover::before {
    left: 100%;
}

.btn-teacher::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-teacher:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.btn-teacher:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 35px rgba(245, 158, 11, 0.5),
        0 0 0 4px rgba(245, 158, 11, 0.2);
}

.btn-teacher:active {
    transform: translateY(-2px);
}

.btn-teacher .fa-chalkboard-teacher {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-teacher:hover .fa-chalkboard-teacher {
    transform: scale(1.1);
}

.btn-teacher .fa-arrow-right {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    margin-left: auto;
}

.btn-teacher:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* Bouton Parent */
.btn-parent {
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow:
        0 4px 20px rgba(16, 185, 129, 0.4),
        0 0 0 0 rgba(16, 185, 129, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-parent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-parent:hover::before {
    left: 100%;
}

.btn-parent::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-parent:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.btn-parent:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 35px rgba(16, 185, 129, 0.5),
        0 0 0 4px rgba(16, 185, 129, 0.2);
}

.btn-parent:active {
    transform: translateY(-2px);
}

.btn-parent .fa-users {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-parent:hover .fa-users {
    transform: scale(1.1);
}

.btn-parent .fa-arrow-right {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    margin-left: auto;
}

.btn-parent:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* Bouton Verification */
.btn-verify {
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow:
        0 4px 20px rgba(29, 78, 216, 0.35),
        0 0 0 0 rgba(29, 78, 216, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-verify::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.btn-verify:hover::before {
    left: 100%;
}

.btn-verify::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-verify:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.btn-verify:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 35px rgba(29, 78, 216, 0.45),
        0 0 0 4px rgba(29, 78, 216, 0.16);
}

.btn-verify:active {
    transform: translateY(-2px);
}

.btn-verify .fa-qrcode {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-verify:hover .fa-qrcode {
    transform: scale(1.08);
}

.btn-verify .fa-arrow-right {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    margin-left: auto;
}

.btn-verify:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
    background: white;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: badgePulse 3s ease infinite;
}

.section-badge i {
    font-size: 1rem;
    animation: rocketBounce 2s ease infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 20px 5px rgba(99, 102, 241, 0.1); }
}

@keyframes rocketBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-5deg); }
    75% { transform: translateY(3px) rotate(5deg); }
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 36px 28px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    z-index: -1;
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 60px rgba(99, 102, 241, 0.15),
        0 0 40px rgba(99, 102, 241, 0.1);
    border-color: transparent;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    background: var(--gray-100);
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 28px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-card h3 i {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-card:hover h3 i {
    transform: scale(1.2) rotate(-5deg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: default;
}

.contact-item:hover {
    padding-left: 10px;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.contact-item:hover strong {
    color: var(--primary);
}

.contact-item span {
    color: var(--gray-500);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.info-card p {
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ===== VERSION BADGE ===== */
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.version-badge:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
}

.version-badge i {
    color: var(--primary);
    font-size: 1rem;
}

.version-badge strong {
    color: var(--primary);
    font-weight: 700;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gradient-dark);
    color: white;
    padding: 70px 0 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-social a i {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    border-color: transparent;
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading button */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { order: 2; }
    .login-card {
        max-width: 480px;
        margin: 0 auto;
        order: 1;
    }
    .hero-description { margin: 0 auto 32px; }
    .hero-stats { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Hamburger visible, nav en overlay */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 998;
        flex-direction: column;
        gap: 0;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links.open { max-height: 200px; }
    .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.07); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        color: rgba(255,255,255,0.9) !important;
        padding: 16px 24px;
        display: block;
        font-size: 1rem;
        min-height: 52px;
        display: flex;
        align-items: center;
    }
    .nav-links a::after { display: none; }

    /* Hero + login card */
    .hero { padding: 72px 0 48px; }
    .hero-title { font-size: 2.5rem; }
    .login-card { padding: 32px 24px; }

    /* Stats compacts */
    .hero-stats { gap: 10px; }
    .stat-item { padding: 12px 16px; }
    .stat-number { font-size: 2rem; }

    /* Sections */
    .features-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Très petits écrans — stats masquées pour focus sur la card */
@media (max-width: 420px) {
    .hero-stats { display: none; }
    .hero-badge { font-size: 0.78rem; padding: 8px 14px; }
    .hero-title { font-size: 2.1rem; }
    .login-card { padding: 28px 20px; border-radius: 20px; }
    .login-header h2 { font-size: 1.6rem; }
}

/* ===== ADMIN CHIP ===== */
.admin-chip {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(99,102,241,0.25);
    margin-bottom: 10px;
}

/* ===== FORGOT LINK ===== */
.forgot-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== TOGGLE SHOW/HIDE PASSWORD ===== */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2; /* au-dessus de l'input (transform:translateY sur :focus crée un stacking context) */
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
    min-height: 36px; /* touch-friendly */
}
.toggle-password:hover {
    color: var(--primary);
    background: rgba(99,102,241,0.07);
}
.toggle-password svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}
/* Éviter que la saisie du mdp soit couverte par le bouton eye */
#password { padding-right: 52px; }

/* ===== CARD HOVER DÉSACTIVÉ QUAND UN CHAMP EST ACTIF ===== */
.login-card:has(:focus-within) {
    transform: none !important;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 -20px 40px rgba(99, 102, 241, 0.1) inset !important;
}

/* ===== HAMBURGER / NAV MOBILE ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
header.scrolled .nav-toggle span { background: var(--dark); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== PAGE CENTRÉE (forgot_password, reset_password) ===== */
.page-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
    position: relative;
    z-index: 1;
}
.page-center .login-card {
    max-width: 440px;
    width: 100%;
    animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* ===== ALERT SUCCESS (page mot de passe oublié) ===== */
.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ===== STYLES SPÉCIFIQUES FORGOT PASSWORD ===== */
.forgot-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 20px;
    font-size: 0.82rem;
    color: #1d4ed8;
    line-height: 1.5;
}
.forgot-info-box svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.forgot-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.2s, color 0.2s;
}
.forgot-back-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}
.forgot-back-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}
.forgot-back-link:hover svg { transform: translateX(-3px); }

/* ===== SECTION "PAS ADMIN ?" (forgot_password.php) ===== */
.not-admin-box {
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
}
.not-admin-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.not-admin-links {
    display: flex;
    gap: 10px;
}
.not-admin-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    min-height: 44px; /* touch-friendly */
    line-height: 1.2;
    text-align: center;
}
.not-admin-link--teacher {
    background: #fffbeb;
    color: #b45309;
    border-color: #fcd34d;
}
.not-admin-link--teacher:hover {
    background: var(--gradient-warm);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}
.not-admin-link--parent {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}
.not-admin-link--parent:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}
@media (max-width: 420px) {
    .not-admin-links { flex-direction: column; }
    .not-admin-link { justify-content: flex-start; padding-left: 18px; }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg-animated { display: none; }
    .login-card::after { display: none; }
    .login-card::before { animation: none; background-size: 100% 100%; }
}

/* ===== BOUTON BIOMÉTRIQUE ===== */
.btn-biometric {
    width: 100%;
    padding: 15px 28px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.btn-biometric::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.btn-biometric:hover::before { left: 100%; }
.btn-biometric:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.45);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}
.btn-biometric:active { transform: translateY(-1px); }
#webauthn-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    text-align: center;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
#webauthn-message.wam-error {
    background: #fff5f5;
    color: var(--danger);
    border-color: #fed7d7;
}

/* ===== PWA INSTALL CTA (hero) ===== */
.pwa-hero-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}
.pwa-hero-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.pwa-hero-install-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.pwa-hero-install-btn:active { transform: translateY(0); }
.pwa-hero-hint {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
}
@media (max-width: 420px) {
    .pwa-hero-cta { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pwa-hero-hint { font-size: 0.78rem; }
}
