/* ====================================================================
   LUXURY ATTENDANCE & RESULT PAGE - SEARCH/LANDING DESIGN
   $99999 Awwwards-Level Aesthetic
   ==================================================================== */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === ROOT VARIABLES === */
:root {
    /* Midnight & Gold Luxury Theme */
    --luxury-charcoal: #0a0a0a;
    --luxury-gold: #d4af37;
    --luxury-cream: #fcfcfc;
    --luxury-midnight: #1a1a2e;
    --luxury-silver: #e5e5e5;

    /* Gradient Colors */
    --gradient-1: #f5f7fa;
    --gradient-2: #c3cfe2;
    --gradient-3: #d4af37;
    --gradient-4: #4d9fff;

    /* Status Colors */
    --success-green: #27ae60;
    --warning-orange: #f39c12;
    --danger-red: #e74c3c;
    --info-blue: #3498db;

    /* Shadows */
    --shadow-luxury: 0 8px 32px rgba(0, 0, 0, 0.1), 0 20px 60px rgba(212, 175, 55, 0.2);
    --shadow-glow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* === ANIMATED GRADIENT BACKGROUND === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(-45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* === GLASSMORPHISM SEARCH CARD === */
.luxury-search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-luxury);
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    animation: cardSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom;
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === ICON CONTAINER === */
.luxury-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--luxury-gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    animation: iconRotateScale 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s backwards;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

@keyframes iconRotateScale {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }

    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* === TYPOGRAPHY === */
.luxury-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--luxury-charcoal), var(--luxury-midnight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    animation: fadeInDown 0.8s ease 0.5s backwards;
    line-height: 1.2;
}

.luxury-subtitle {
    color: rgba(10, 10, 10, 0.7);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.7s backwards;
    line-height: 1.6;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === LUXURY FORM INPUT === */
.luxury-form-group {
    position: relative;
    margin-bottom: 2rem;
    animation: slideInFromBottom 0.8s ease 0.9s backwards;
}

.luxury-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 60px;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    max-width: 100%;
}

.luxury-input:focus {
    border-color: var(--luxury-gold);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), var(--shadow-glow-gold);
    transform: translateY(-2px);
}

.luxury-input::placeholder {
    color: rgba(10, 10, 10, 0.4);
    font-weight: 400;
}

.luxury-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--luxury-gold);
    font-size: 1.4rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.luxury-input:focus+.luxury-input-icon {
    color: var(--luxury-gold);
    transform: translateY(-50%) scale(1.1);
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === FLOATING LABEL (Optional Enhancement) === */
.luxury-form-group.has-floating-label .luxury-label {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(10, 10, 10, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.luxury-input:focus~.luxury-label,
.luxury-input:not(:placeholder-shown)~.luxury-label {
    top: -8px;
    left: 20px;
    font-size: 0.85rem;
    color: var(--luxury-gold);
    background: rgba(255, 255, 255, 0.9);
    padding: 0 8px;
    border-radius: 4px;
}

/* === PREMIUM BUTTON === */
.luxury-btn {
    width: 100%;
    min-width: 280px;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--luxury-charcoal);
    background: linear-gradient(135deg, var(--luxury-gold), #f4d03f);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.luxury-btn::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.5s ease;
}

.luxury-btn:hover::before {
    left: 100%;
}

.luxury-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow-gold), var(--shadow-lift);
}

.luxury-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* === SECURITY BADGE === */
.luxury-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(10, 10, 10, 0.6);
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 24px;
    animation: fadeIn 0.8s ease 1.1s backwards;
}

.luxury-security-badge i {
    color: var(--success-green);
    font-size: 1.1rem;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* === LOADING OVERLAY === */
.luxury-loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.luxury-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(212, 175, 55, 0.2);
    border-top: 6px solid var(--luxury-gold);
    border-radius: 50%;
    animation: luxurySpin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin-bottom: 1.5rem;
}

@keyframes luxurySpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.luxury-loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--luxury-charcoal);
    font-weight: 600;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* === FORM HELPER TEXT === */
.luxury-helper-text {
    font-size: 0.9rem;
    color: rgba(10, 10, 10, 0.6);
    margin-top: 0.75rem;
    text-align: center;
    line-height: 1.5;
}

/* === BACK LINK === */
.luxury-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--luxury-charcoal);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.luxury-back-link:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-5px);
    color: var(--luxury-gold);
}

/* === RESPONSIVE DESIGN === */

/* Tablet */
@media (max-width: 991px) {
    .luxury-search-card {
        padding: 2.5rem;
        border-radius: 24px;
    }

    .luxury-title {
        font-size: 2rem;
    }

    .luxury-icon-container {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .luxury-search-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 1rem;
    }

    .luxury-title {
        font-size: 1.75rem;
    }

    .luxury-subtitle {
        font-size: 1rem;
    }

    .luxury-input {
        font-size: 1.1rem;
        padding: 1rem 1rem 1rem 55px;
    }

    .luxury-btn {
        min-width: 100%;
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }

    .luxury-icon-container {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .luxury-search-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .luxury-title {
        font-size: 1.5rem;
    }

    .luxury-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .luxury-input {
        font-size: 1rem;
        padding: 0.9rem 0.9rem 0.9rem 50px;
    }

    .luxury-input-icon {
        left: 15px;
        font-size: 1.2rem;
    }

    .luxury-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .luxury-security-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body {
        animation: none;
        background: var(--gradient-2);
    }
}

/* === DARK MODE SUPPORT (Optional) === */
@media (prefers-color-scheme: dark) {
    .luxury-search-card {
        background: rgba(26, 26, 46, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .luxury-title {
        background: linear-gradient(135deg, var(--luxury-cream), var(--luxury-gold));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .luxury-subtitle,
    .luxury-helper-text {
        color: rgba(255, 255, 255, 0.7);
    }

    .luxury-input {
        background: rgba(255, 255, 255, 0.1);
        color: var(--luxury-cream);
    }

    .luxury-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }
}