/**
 * Christmas Login Page Styles
 * Beautiful winter wonderland theme with animations
 */

/* ==================== BODY & BACKGROUND ==================== */
/* Keep original background - no overrides */

/* Canvas for physics-based snow */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Background CSS snow for depth effect */
#backgroundSnow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.css-snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    animation: fall linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ==================== CHRISTMAS STARS & SPARKLES ==================== */
.sparkle {
    position: fixed;
    color: #ffd700;
    font-size: 12px;
    animation: twinkle 2s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 0 10px #ffd700;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ==================== CHRISTMAS COUNTDOWN CALENDAR ==================== */
#christmasCalendar {
    position: fixed;
    top: 80px;
    right: 30px;
    z-index: 1000;
    perspective: 1000px;
}

.calendar-wrapper {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    border-radius: 10px 10px 5px 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    width: 180px;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.calendar-header {
    background: #8b0000;
    height: 25px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 20px;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.3);
}

.calendar-binding {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #333 0%, #000 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5),
                0 1px 0 rgba(255, 255, 255, 0.3);
}

.calendar-pages {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.calendar-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 5px 5px;
    transform-origin: top center;
    transition: transform 0.3s ease;
}

.calendar-page.current-page {
    z-index: 2;
}

.calendar-page.next-page {
    z-index: 1;
    background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
}

.calendar-page.tearing {
    animation: tear 1s ease-out forwards;
}

@keyframes tear {
    0% {
        transform: rotateX(0deg) translateY(0);
        opacity: 1;
    }
    50% {
        transform: rotateX(45deg) translateY(20px);
        opacity: 0.7;
    }
    100% {
        transform: rotateX(90deg) translateY(100px) scale(0.8);
        opacity: 0;
    }
}

.calendar-month {
    font-size: 12px;
    font-weight: bold;
    color: #c41e3a;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.calendar-days {
    font-size: 64px;
    font-weight: bold;
    color: #2c5f87;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-label {
    font-size: 11px;
    color: #666;
    font-weight: bold;
    margin-top: 10px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.calendar-decoration {
    font-size: 20px;
    margin-top: 15px;
}

/* ==================== FORM CONTAINER ==================== */
/* Keep original container styling - no overrides */

/* ==================== INPUT FIELDS ==================== */
/* Keep original input styling - no overrides */

/* ==================== BUTTONS ==================== */
/* Keep original button styling - no overrides */

/* ==================== HEADER ==================== */
/* Keep original header styling - no overrides */

/* ==================== CHRISTMAS LIGHTS ==================== */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
}

.light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.light:nth-child(1) { background: #ff0000; animation-delay: 0s; }
.light:nth-child(2) { background: #00ff00; animation-delay: 0.3s; }
.light:nth-child(3) { background: #0000ff; animation-delay: 0.6s; }
.light:nth-child(4) { background: #ffff00; animation-delay: 0.9s; }
.light:nth-child(5) { background: #ff00ff; animation-delay: 1.2s; }
.light:nth-child(6) { background: #ff0000; animation-delay: 0.2s; }
.light:nth-child(7) { background: #00ff00; animation-delay: 0.5s; }
.light:nth-child(8) { background: #0000ff; animation-delay: 0.8s; }
.light:nth-child(9) { background: #ffff00; animation-delay: 1.1s; }
.light:nth-child(10) { background: #ff00ff; animation-delay: 1.4s; }
.light:nth-child(11) { background: #ff0000; animation-delay: 0.1s; }
.light:nth-child(12) { background: #00ff00; animation-delay: 0.4s; }
.light:nth-child(13) { background: #0000ff; animation-delay: 0.7s; }
.light:nth-child(14) { background: #ffff00; animation-delay: 1.0s; }
.light:nth-child(15) { background: #ff00ff; animation-delay: 1.3s; }

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 20px currentColor; }
    50% { opacity: 0.3; box-shadow: 0 0 5px currentColor; }
}

/* ==================== FOOTER ==================== */
/* Grass effect for winter wonderland */
.footer {
    background: linear-gradient(to bottom,
        #3a6b1f 0%,
        #2d5016 40%,
        #234012 100%) !important;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.4),
                inset 0 -5px 10px rgba(255, 255, 255, 0.1);
    border-top: 2px solid #4a7c2a;
}

/* Grass texture overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.02) 1px,
            rgba(0, 0, 0, 0.02) 2px
        );
    pointer-events: none;
}

/* Soft grass edge fade */
.footer::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(45, 80, 22, 0.5));
    pointer-events: none;
}

/* ==================== CHRISTMAS TREE DECORATION ==================== */
.christmas-tree {
    position: fixed;
    bottom: 20px;
    left: 30px;
    font-size: 60px;
    z-index: 5;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    #christmasCalendar {
        top: 10px;
        right: 10px;
    }

    .calendar-wrapper {
        width: 140px;
    }

    .calendar-days {
        font-size: 48px;
    }

    .christmas-tree {
        font-size: 40px;
        bottom: 10px;
        left: 10px;
    }
}
