/* ============================================
   FIBONAUT - Modern App Styles
   Using Design System Variables
   ============================================ */

/* Import Google Fonts - Modern Sans-Serif */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Custom Monospace Font - Only for code blocks */
@font-face {
    font-family: 'RobotoMono-VariableFont_wght';
    src: url('../fonts/RobotoMono-VariableFont_wght.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Apply modern font stack globally */
body, html {
    font-family: var(--font-primary, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display, 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif);
}

/* MudBlazor Component Font Override */
.mud-typography, .mud-typography-body1, .mud-typography-body2,
.mud-input, .mud-input-control, .mud-button, .mud-button-root {
    font-family: var(--font-primary, 'Inter', sans-serif);
}

/* Keep monospace only for code elements */
code, pre, kbd, samp {
    font-family: 'RobotoMono-VariableFont_wght', 'JetBrains Mono', 'Fira Code', monospace;
}

/* ==================== MUDBLAZOR BUTTON OVERRIDES ==================== */
.mud-button {
    min-height: 48px;
    padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
    border-radius: var(--radius-lg, 1rem);
    font-weight: var(--font-weight-semibold, 600);
    transition: all var(--transition-base, 250ms);
}

.mud-button-root {
    min-height: 48px;
    padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
    border-radius: var(--radius-lg, 1rem);
}

.mud-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

/* Mobile button adjustments */
@media (max-width: 600px) {
    .mud-button, .mud-button-root {
        min-height: 44px;
        padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
        font-size: var(--font-size-sm, 0.875rem);
    }
}

/* ==================== QUIZ & GAME COMPONENTS ==================== */

.answer-option-btn {
    border-color: var(--color-gray-300, rgba(66, 66, 66, 0.25));
    border-radius: var(--radius-lg, 1rem);
    transition: all var(--transition-base);
}

.answer-option-btn:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.big-alert {
    font-size: var(--font-size-lg);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
}
.access-restricted {
    border: 1px solid #b7acac;
    margin-top: 15px;
    padding: 10px;
    background: #ebebf5;
    border-radius: 15px;
}
/* Daily Quiz Button - Premium Style with Strong Override */
.daily-quiz-btn,
.mud-button.daily-quiz-btn,
button.daily-quiz-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-2) !important;
    width: 100% !important;
    max-width: 280px !important;
    min-height: 72px !important;
    padding: var(--space-5) var(--space-8) !important;
    border-radius: 20px !important;
    font-family: var(--font-display) !important;
    font-size: var(--font-size-xl) !important;
    font-weight: var(--font-weight-bold) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%) !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4), 0 4px 10px rgba(99, 102, 241, 0.3) !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    text-transform: none !important;
}

/* Force white color for text and icons */
.daily-quiz-btn span,
.mud-button.daily-quiz-btn span,
.daily-quiz-btn .mud-icon-root,
.daily-quiz-btn svg {
    color: #ffffff !important;
}

.daily-quiz-btn-text {
    color: #ffffff !important;
    font-weight: var(--font-weight-bold) !important;
}

.daily-quiz-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: 1;
}

.daily-quiz-btn:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.5), 0 6px 14px rgba(99, 102, 241, 0.4) !important;
}

.daily-quiz-btn:hover::before {
    left: 100%;
}

.daily-quiz-btn:active {
    transform: translateY(-2px) scale(1) !important;
}

.daily-quiz-btn:focus-visible {
    outline: 3px solid rgba(168, 85, 247, 0.5) !important;
    outline-offset: 4px !important;
}

/* Disabled state */
.daily-quiz-btn:disabled,
.daily-quiz-btn.Mui-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .daily-quiz-btn,
    .mud-button.daily-quiz-btn {
        max-width: 100% !important;
        min-height: 64px !important;
        padding: var(--space-4) var(--space-6) !important;
        font-size: var(--font-size-lg) !important;
    }
}
/* ==================== INFO CARDS ==================== */

.info-card {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(168, 85, 247, 0.05) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(99, 102, 241, 0.1);
    padding: var(--space-5);
    transition: all var(--transition-base);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.info-card-title {
    color: var(--color-primary-dark);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.info-card-description {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.devider {
    border-color: var(--color-gray-200);
    opacity: 0.5;
}

/* Fibo Button - Primary Action Button with Strong Override */
.fibo-button,
.mud-button.fibo-button,
button.fibo-button {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-2) !important;
    padding: 16px 32px !important;
    font-family: var(--font-display) !important;
    font-size: var(--font-size-lg) !important;
    font-weight: var(--font-weight-bold) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-height: 55px !important;
}

.fibo-button span,
.mud-button.fibo-button span {
    color: #ffffff !important;
    font-weight: var(--font-weight-bold) !important;
}

.fibo-button .mud-icon-root,
.fibo-button svg {
    color: #ffffff !important;
}

.fibo-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.fibo-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.fibo-button:hover::before {
    left: 100%;
}

.fibo-button:active {
    transform: translateY(-1px) !important;
}

.fibo-button:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.5) !important;
    outline-offset: 4px !important;
}

/* Disabled state */
.fibo-button:disabled,
.fibo-button.Mui-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ==================== AVATARS ==================== */

.square-avatar-user-card {
    border-radius: 50% !important; /* Fully rounded for profile pictures */
    border: 2px solid rgba(99, 102, 241, 0.15);
    transition: all var(--transition-base);
    padding: var(--space-1);
    background: var(--bg-primary);
    object-fit: cover;
}

.square-avatar-user-card:hover {
    transform: scale(1.08);
    border-color: #6b7280 !important; /* Gray border on hover */
    box-shadow: 0 0 20px rgba(107, 114, 128, 0.3);
}

/* ==================== GAME BUTTONS - PREMIUM LIGHT EFFECTS ==================== */

.game-btn-base {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.02em;
    color: #ffffff !important;
    border: 2px solid;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.3s ease;
    cursor: pointer;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    background-size: 200% 200%;
    background-position: 0% 50%;
}

/* Moving shine sweep animation */
.game-btn-base::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -20%;
    width: 40%;
    height: 180%;
    transform: rotate(20deg);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    filter: blur(6px);
    animation: game-btn-shine 2.2s infinite;
}

/* Outer neon glow layer */
.game-btn-base::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(60% 80% at 50% 100%, currentColor 0%, transparent 70%);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.55;
}

.game-btn-base:hover {
    transform: translateY(-3px);
    background-position: 100% 50%;
}

.game-btn-base:active {
    transform: translateY(-1px);
}

.game-btn-base:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 0 6px currentColor;
}

@keyframes game-btn-shine {
    0% { left: -30%; }
    60% { left: 110%; }
    100% { left: 110%; }
}

/* Game Button Color Variants with Enhanced Light Effects */
.game-btn-memory {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    border-color: rgba(139, 91, 211, 0.5);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25) inset, 0 8px 24px rgba(102, 126, 234, 0.35), 0 0 24px rgba(102, 126, 234, 0.5);
}

.game-btn-memory:hover {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25) inset, 0 12px 28px rgba(118, 75, 162, 0.45), 0 0 36px rgba(118, 75, 162, 0.65);
}

.game-btn-snake {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #f093fb 100%);
    border-color: rgba(245, 87, 108, 0.5);
    box-shadow: 0 0 0 2px rgba(240, 147, 251, 0.25) inset, 0 8px 24px rgba(245, 87, 108, 0.35), 0 0 24px rgba(245, 87, 108, 0.5);
}

.game-btn-snake:hover {
    box-shadow: 0 0 0 2px rgba(240, 147, 251, 0.25) inset, 0 12px 28px rgba(245, 87, 108, 0.45), 0 0 36px rgba(245, 87, 108, 0.65);
}

.game-btn-maze {
    background: linear-gradient(135deg, #4dd0e1 0%, #00acc1 50%, #4dd0e1 100%);
    border-color: rgba(0, 172, 193, 0.5);
    box-shadow: 0 0 0 2px rgba(77, 208, 225, 0.25) inset, 0 8px 24px rgba(0, 172, 193, 0.35), 0 0 24px rgba(0, 172, 193, 0.5);
}

.game-btn-maze:hover {
    box-shadow: 0 0 0 2px rgba(77, 208, 225, 0.25) inset, 0 12px 28px rgba(0, 172, 193, 0.45), 0 0 36px rgba(0, 172, 193, 0.65);
}

.game-btn-pattern {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.25) inset, 0 8px 24px rgba(0, 242, 254, 0.35), 0 0 24px rgba(0, 242, 254, 0.5);
}

.game-btn-pattern:hover {
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.25) inset, 0 12px 28px rgba(0, 242, 254, 0.45), 0 0 36px rgba(0, 242, 254, 0.65);
}

.game-btn-sudoku {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 50%, #a18cd1 100%);
    border-color: rgba(161, 140, 209, 0.5);
    box-shadow: 0 0 0 2px rgba(161, 140, 209, 0.25) inset, 0 8px 24px rgba(161, 140, 209, 0.35), 0 0 24px rgba(161, 140, 209, 0.5);
}

.game-btn-sudoku:hover {
    box-shadow: 0 0 0 2px rgba(161, 140, 209, 0.25) inset, 0 12px 28px rgba(161, 140, 209, 0.45), 0 0 36px rgba(161, 140, 209, 0.65);
}

.game-btn-rocket {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #fa709a 100%);
    border-color: rgba(250, 112, 154, 0.5);
    box-shadow: 0 0 0 2px rgba(250, 112, 154, 0.25) inset, 0 8px 24px rgba(250, 112, 154, 0.35), 0 0 24px rgba(250, 112, 154, 0.5);
}

.game-btn-rocket:hover {
    box-shadow: 0 0 0 2px rgba(250, 112, 154, 0.25) inset, 0 12px 28px rgba(250, 112, 154, 0.45), 0 0 36px rgba(250, 112, 154, 0.65);
}

.game-btn-drag-race {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25) inset, 0 8px 24px rgba(231, 76, 60, 0.35), 0 0 24px rgba(231, 76, 60, 0.5);
}

.game-btn-drag-race:hover {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25) inset, 0 12px 28px rgba(231, 76, 60, 0.45), 0 0 36px rgba(231, 76, 60, 0.65);
}

.game-btn-alchemist {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    border-color: rgba(118, 75, 162, 0.5);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25) inset, 0 8px 24px rgba(102, 126, 234, 0.35), 0 0 24px rgba(102, 126, 234, 0.5);
}

.game-btn-alchemist:hover {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25) inset, 0 12px 28px rgba(102, 126, 234, 0.45), 0 0 36px rgba(102, 126, 234, 0.65);
}

/* Social Icon Hover Effect */
.social-icon-hover {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 5%;
    padding: 8px;
}

.social-icon-hover::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.social-icon-hover:hover::before {
    left: 100%;
    opacity: 1;
}

.social-icon-hover:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
}

/* ================================================= */
/* MOBILE RESPONSIVE STYLES - COMPREHENSIVE SECTION */
/* ================================================= */

/* Mobile - phones (< 600px) */
@media (max-width: 600px) {
    /* Typography adjustments */
    h1, .mud-typography-h1 {
        font-size: 2rem !important;
    }

    h2, .mud-typography-h2 {
        font-size: 1.75rem !important;
    }

    h3, .mud-typography-h3 {
        font-size: 1.5rem !important;
    }

    h4, .mud-typography-h4 {
        font-size: 1.25rem !important;
    }

    h5, .mud-typography-h5 {
        font-size: 1.125rem !important;
    }

    h6, .mud-typography-h6 {
        font-size: 1rem !important;
    }

    body, .mud-typography-body1 {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
    }

    /* Game buttons mobile */
    .game-btn-base {
        font-size: 0.95rem !important;
        padding: 14px 24px !important;
        border-radius: 10px !important;
    }

    .game-btn-memory,
    .game-btn-snake,
    .game-btn-maze,
    .game-btn-pattern,
    .game-btn-sudoku,
    .game-btn-rocket,
    .game-btn-alchemist {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px;
        box-sizing: border-box !important;
        padding: 14px 20px !important;
        font-size: 0.9rem !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }
    
    /* Ensure button text doesn't overflow */
    .game-btn-base {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
    }

    /* Info cards */
    .info-card {
        padding: 12px !important;
        margin-bottom: 12px;
    }

    .info-card-title {
        font-size: 1.125rem !important;
    }

    .info-card-description {
        font-size: 0.875rem !important;
    }

    /* Fibo button */
    .fibo-button {
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
    }

    /* Avatar adjustments */
    .square-avatar-user-card {
        padding: 3px;
        border: 1px solid #ebe8ee61;
    }

    /* Alert boxes */
    .big-alert {
        font-size: 1rem;
        padding: 15px 10px;
    }

    /* Answer option buttons in quizzes */
    .answer-option-btn {
        font-size: 1rem !important;
        padding: 10px !important;
        min-height: 44px !important;
    }

    /* MudBlazor component adjustments */
    .mud-paper {
        padding: 12px !important;
    }

    .mud-table {
        font-size: 0.8rem !important;
    }

    .mud-table-cell {
        padding: 8px 4px !important;
    }

    /* Card spacing */
    .mud-card {
        margin-bottom: 12px !important;
    }

    .mud-card-content {
        padding: 12px !important;
    }

    /* Input fields */
    .mud-input,
    .mud-input-root,
    .mud-select {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }

    /* Icon sizes */
    .mud-icon-root {
        font-size: 1.25rem !important;
    }

    /* Dialog adjustments */
    .mud-dialog {
        margin: 16px !important;
        max-width: calc(100vw - 32px) !important;
    }

    .mud-dialog-content {
        padding: 16px !important;
    }

    /* Stepper adjustments */
    .mud-stepper {
        padding: 8px !important;
    }

    .mud-step-label {
        font-size: 0.75rem !important;
    }
}

/* Tablet - portrait (600px - 960px) */
@media (min-width: 601px) and (max-width: 960px) {
    h1, .mud-typography-h1 {
        font-size: 2.25rem !important;
    }

    h2, .mud-typography-h2 {
        font-size: 2rem !important;
    }

    h3, .mud-typography-h3 {
        font-size: 1.75rem !important;
    }

    .game-btn-base {
        font-size: 1rem !important;
        padding: 14px 22px !important;
    }

    .daily-quiz-btn {
        max-width: 240px;
        height: 65px;
    }
}

/* Extra small screens - iPad portrait and smaller */
@media (max-width: 768px) {
    .game-btn-base {
        font-size: 0.85rem !important;
        padding: 10px 14px !important;
        gap: 0.5rem !important;
    }
    
    .game-btn-memory,
    .game-btn-snake,
    .game-btn-maze,
    .game-btn-pattern,
    .game-btn-sudoku,
    .game-btn-rocket,
    .game-btn-drag-race,
    .game-btn-alchemist {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* Touch-friendly tap targets */
@media (pointer: coarse) {
    .mud-button,
    .mud-icon-button,
    .mud-chip,
    a,
    button {
        min-height: 44px !important;
        min-width: 44px !important;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 960px) and (orientation: landscape) {
    .mud-appbar {
        min-height: 48px !important;
    }

    .pt-16 {
        padding-top: 48px !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .square-avatar,
    .square-avatar-user-card,
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== MODERN KID-FRIENDLY QUIZ STYLES ==================== */

/* Loading State */
.quiz-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.quiz-loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.5s;
    border-top-color: #a855f7;
}

.spinner-ring:nth-child(3) {
    animation-delay: -1s;
    border-top-color: #06b6d4;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-loading-text {
    color: #6366f1;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Empty State */
.quiz-empty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.quiz-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.quiz-empty-title {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 1rem;
}

.quiz-empty-message {
    color: #64748b;
    font-size: 1.125rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Results Container */
.quiz-results-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.quiz-results-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.quiz-results-celebration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.celebration-emoji {
    font-size: 3rem;
    animation: celebration 2s ease-in-out infinite;
}

.celebration-emoji:nth-child(2) {
    animation-delay: 0.5s;
}

.celebration-emoji:nth-child(3) {
    animation-delay: 1s;
}

@keyframes celebration {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.quiz-results-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.quiz-score-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.quiz-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.quiz-score-percentage {
    font-size: 3rem;
    font-weight: 900;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.quiz-results-message {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.quiz-stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.quiz-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.quiz-stat-icon {
    font-size: 1.25rem;
}

.quiz-stat-text {
    font-weight: 600;
    font-size: 1rem;
}

.quiz-retry-btn-modern {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 1;
}

.quiz-retry-btn-modern:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.6) !important;
}

/* Main Quiz Container */
.quiz-main-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quiz-main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4, #fbbf24);
    background-size: 400% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Progress Bar */
.quiz-progress-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.quiz-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quiz-title-modern {
    color: #1e293b;
    font-weight: 800;
    font-size: 1.75rem;
    margin: 0;
}

.quiz-progress-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    color: #6366f1;
}

.quiz-progress-bar {
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 50px;
    transition: width 0.5s ease;
    position: relative;
}

.quiz-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Question Container */
.quiz-question-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.quiz-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quiz-question-number {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
}

.quiz-question-icon {
    font-size: 2rem;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.quiz-question-content {
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

.quiz-question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
    text-align: center;
}

/* Answer Options */
.quiz-options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.quiz-option:hover::before {
    left: 100%;
}

.quiz-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.quiz-option-selected {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.quiz-option-correct {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
    animation: correct-pulse 0.6s ease;
}

.quiz-option-wrong {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #ef4444;
    animation: wrong-shake 0.6s ease;
}

@keyframes correct-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes wrong-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Removed quiz-option-letter styles as the element is no longer used */

.quiz-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.quiz-option-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.quiz-option-selected .quiz-option-text {
    color: white;
}

.quiz-option-icon {
    font-size: 1.5rem;
    animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Explanation */
.quiz-explanation-container {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    animation: slide-up 0.5s ease;
}

@keyframes slide-up {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.quiz-explanation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quiz-explanation-icon {
    font-size: 1.5rem;
}

.quiz-explanation-title {
    font-weight: 700;
    color: #92400e;
    font-size: 1.125rem;
}

.quiz-explanation-content {
    color: #92400e;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Navigation */
.quiz-navigation-container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.quiz-nav-btn {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3) !important;
    transition: all 0.3s ease !important;
}

.quiz-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4) !important;
}

.quiz-complete-btn-modern {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease !important;
}

.quiz-complete-btn-modern:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-main-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .quiz-question-container {
        padding: 1.5rem;
    }

    .quiz-question-text {
        font-size: 1.25rem;
    }

    .quiz-option {
        padding: 1rem;
    }

    .quiz-option-text {
        font-size: 1rem;
    }

    .quiz-stats-container {
        flex-direction: column;
        gap: 1rem;
    }

    .quiz-results-container {
        padding: 2rem 1.5rem;
    }

    .quiz-score-circle {
        width: 120px;
        height: 120px;
    }

    .quiz-score-percentage {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .quiz-progress-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .quiz-question-header {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
    }

    .quiz-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .quiz-option-content {
        width: 100%;
    }
}

/* ==================== MODERN KID-FRIENDLY USERNAME SECTION ==================== */
.username-magic-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 2rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: username-magic-entrance 0.8s ease-out;
}

@keyframes username-magic-entrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.username-magic-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: username-shimmer 3s infinite;
}

@keyframes username-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.username-magic-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: username-header-bounce 0.6s ease-out 0.2s both;
}

@keyframes username-header-bounce {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.username-magic-icon {
    font-size: 2rem;
    animation: username-dice-roll 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

@keyframes username-dice-roll {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
}

.username-magic-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.username-magic-field {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    animation: username-field-slide 0.6s ease-out 0.4s both;
}

@keyframes username-field-slide {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.username-magic-input {
    flex: 1;
}

.username-magic-input .mud-input-root {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 3px solid rgba(99, 102, 241, 0.4) !important;
    border-radius: 5px !important;
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    min-height: 56px !important;
    padding: 0.75rem 1rem !important;
}

.username-magic-input .mud-input-root:hover {
    border-color: rgba(99, 102, 241, 0.6) !important;
    box-shadow: 
        0 6px 16px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px) !important;
}

.username-magic-input .mud-input-root.mud-input-root-focused {
    border-color: #6366f1 !important;
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.2),
        0 6px 16px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.username-magic-input .mud-input-control input {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
}

.username-magic-input .mud-input-label {
    color: #6366f1 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.username-magic-refresh {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    color: white !important;
    border-radius: 16px !important;
    width: 56px !important;
    height: 56px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    animation: username-refresh-pulse 2s ease-in-out infinite;
}

@keyframes username-refresh-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    }
}

.username-magic-refresh:hover {
    transform: rotate(180deg) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5) !important;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%) !important;
}

.username-magic-refresh:active {
    transform: rotate(360deg) scale(0.95) !important;
}

.username-magic-hint {
    color: #64748b !important;
    font-style: italic !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: username-hint-fade 0.6s ease-out 0.6s both;
}

@keyframes username-hint-fade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Username Section */
@media (max-width: 768px) {
    .username-magic-container {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .username-magic-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .username-magic-title {
        font-size: 1.2rem;
    }
    
    .username-magic-field {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .username-magic-refresh {
        width: 48px !important;
        height: 48px !important;
    }
}

@media (max-width: 480px) {
    .username-magic-container {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .username-magic-title {
        font-size: 1.1rem;
    }
    
    .username-magic-icon {
        font-size: 1.5rem;
    }
}

/* ==================== BEAUTIFUL LOGIN TITLE STYLING ==================== */
.login-title-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    position: relative;
    animation: login-title-entrance 0.8s ease-out;
}

@keyframes login-title-entrance {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    50% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    border-radius: 2px;
    animation: login-title-line 1.2s ease-out 0.3s both;
}

@keyframes login-title-line {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}

.login-title-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: login-title-icon-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

@keyframes login-title-icon-bounce {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-8px) rotate(5deg); 
    }
    50% { 
        transform: translateY(-12px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-8px) rotate(-5deg); 
    }
}

.login-title-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 30%, #047857 60%, #065f46 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    animation: login-title-text-glow 3s ease-in-out infinite;
}

@keyframes login-title-text-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(5, 150, 105, 0.5));
    }
}

.login-title-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #64748b;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: login-title-subtitle-fade 0.8s ease-out 0.6s both;
    font-style: italic;
}

@keyframes login-title-subtitle-fade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Login Title */
@media (max-width: 768px) {
    .login-title-container {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .login-title-icon {
        font-size: 2.5rem;
    }
    
    .login-title-text {
        font-size: 1.8rem;
    }
    
    .login-title-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-title-container {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .login-title-icon {
        font-size: 2rem;
    }
    
    .login-title-text {
        font-size: 1.5rem;
    }
    
    .login-title-subtitle {
        font-size: 0.9rem;
    }
}

/* ==================== PASSWORD FIELD STYLING ==================== */
.password-field-container {
    position: relative;
}

.password-field-container .mud-input-adornment {
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-field-container .mud-input-adornment:hover {
    color: var(--mud-palette-primary, #1976d2);
}

.password-field-container .mud-icon-button {
    padding: 8px;
    margin: 0;
}

.password-field-container .mud-icon-button:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
}

/* ==================== BEAUTIFUL FORGOT PASSWORD TITLE STYLING ==================== */
.forgot-password-title-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    position: relative;
    animation: forgot-password-title-entrance 0.8s ease-out;
}

@keyframes forgot-password-title-entrance {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    50% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.forgot-password-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
    border-radius: 2px;
    animation: forgot-password-title-line 1.2s ease-out 0.3s both;
}

@keyframes forgot-password-title-line {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 100px;
        opacity: 1;
    }
}

.forgot-password-title-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: forgot-password-title-icon-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

@keyframes forgot-password-title-icon-bounce {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-8px) rotate(5deg); 
    }
    50% { 
        transform: translateY(-12px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-8px) rotate(-5deg); 
    }
}

.forgot-password-title-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 30%, #b45309 60%, #92400e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    animation: forgot-password-title-text-glow 3s ease-in-out infinite;
}

@keyframes forgot-password-title-text-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(217, 119, 6, 0.5));
    }
}

.forgot-password-title-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #64748b;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: forgot-password-title-subtitle-fade 0.8s ease-out 0.6s both;
    font-style: italic;
}

@keyframes forgot-password-title-subtitle-fade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Forgot Password Title */
@media (max-width: 768px) {
    .forgot-password-title-container {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .forgot-password-title-icon {
        font-size: 2.5rem;
    }
    
    .forgot-password-title-text {
        font-size: 1.8rem;
    }
    
    .forgot-password-title-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .forgot-password-title-container {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .forgot-password-title-icon {
        font-size: 2rem;
    }
    
    .forgot-password-title-text {
        font-size: 1.5rem;
    }
    
    .forgot-password-title-subtitle {
        font-size: 0.9rem;
    }
}

/* ==================== BEAUTIFUL SIGNUP TITLE STYLING ==================== */
.signup-title-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    position: relative;
    animation: signup-title-entrance 0.8s ease-out;
}

@keyframes signup-title-entrance {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    50% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.signup-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #fbbf24);
    border-radius: 2px;
    animation: signup-title-line 1.2s ease-out 0.3s both;
}

@keyframes signup-title-line {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 100px;
        opacity: 1;
    }
}

.signup-title-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: signup-title-icon-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

@keyframes signup-title-icon-bounce {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-8px) rotate(5deg); 
    }
    50% { 
        transform: translateY(-12px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-8px) rotate(-5deg); 
    }
}

.signup-title-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 30%, #ec4899 60%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    animation: signup-title-text-glow 3s ease-in-out infinite;
}

@keyframes signup-title-text-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
    }
}

.signup-title-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #64748b;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: signup-title-subtitle-fade 0.8s ease-out 0.6s both;
    font-style: italic;
}

@keyframes signup-title-subtitle-fade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Signup Title */
@media (max-width: 768px) {
    .signup-title-container {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .signup-title-icon {
        font-size: 2.5rem;
    }
    
    .signup-title-text {
        font-size: 1.8rem;
    }
    
    .signup-title-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .signup-title-container {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .signup-title-icon {
        font-size: 2rem;
    }
    
    .signup-title-text {
        font-size: 1.5rem;
    }
    
    .signup-title-subtitle {
        font-size: 0.9rem;
    }
}