body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    min-height: 100svh;
    padding: 2rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #07152d;
    background-image:
        radial-gradient(ellipse at 14% 78%, rgba(230, 74, 0, 0.12), transparent 34%),
        radial-gradient(ellipse at 85% 72%, rgba(14, 46, 103, 0.65), transparent 38%),
        linear-gradient(155deg, #050d1b 0%, #0b1c39 55%, #102d54 100%);
}

h1 {
    font-family: 'Outfit', sans-serif;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

#snowCanvas {
    z-index: 1;
}

.holiday-top-lights {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 4.5rem;
    pointer-events: none;
}

.holiday-top-lights::before {
    content: '';
    position: absolute;
    inset: -1rem 0 auto;
    height: 3.5rem;
    border-bottom: 1px solid rgba(179, 201, 230, 0.35);
    border-radius: 0 0 50% 50%;
}

.holiday-top-lights span {
    position: absolute;
    width: 0.62rem;
    height: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 45% 45% 50% 50%;
    animation: holiday-light-twinkle 1.8s ease-in-out infinite alternate;
}

.holiday-top-lights span:nth-child(1) { top: 0.8rem; left: 3%; }
.holiday-top-lights span:nth-child(2) { top: 1.1rem; left: 11%; animation-delay: 0.15s; }
.holiday-top-lights span:nth-child(3) { top: 1.35rem; left: 19%; animation-delay: 0.3s; }
.holiday-top-lights span:nth-child(4) { top: 1.55rem; left: 27%; animation-delay: 0.45s; }
.holiday-top-lights span:nth-child(5) { top: 1.7rem; left: 35%; animation-delay: 0.6s; }
.holiday-top-lights span:nth-child(6) { top: 1.8rem; left: 43%; animation-delay: 0.75s; }
.holiday-top-lights span:nth-child(7) { top: 1.8rem; left: 51%; animation-delay: 0.9s; }
.holiday-top-lights span:nth-child(8) { top: 1.7rem; left: 59%; animation-delay: 1.05s; }
.holiday-top-lights span:nth-child(9) { top: 1.55rem; left: 67%; animation-delay: 1.2s; }
.holiday-top-lights span:nth-child(10) { top: 1.35rem; left: 75%; animation-delay: 1.35s; }
.holiday-top-lights span:nth-child(11) { top: 1.1rem; left: 83%; animation-delay: 1.5s; }
.holiday-top-lights span:nth-child(12) { top: 0.8rem; left: 91%; animation-delay: 1.65s; }

.holiday-top-lights span:nth-child(4n + 1) {
    color: #ff6268;
    background: #e83c45;
}

.holiday-top-lights span:nth-child(4n + 2) {
    color: #ffe08a;
    background: #ffc857;
}

.holiday-top-lights span:nth-child(4n + 3) {
    color: #70e7a1;
    background: #31c978;
}

.holiday-top-lights span:nth-child(4n) {
    color: #76ddff;
    background: #37c6f4;
}

.holiday-top-lights span {
    box-shadow: 0 0 9px currentColor, 0 0 17px currentColor;
}

.holiday-tree {
    position: fixed;
    z-index: 3;
    bottom: 1.8rem;
    width: clamp(4.5rem, 8vw, 7rem);
    height: clamp(7rem, 19vh, 11rem);
    pointer-events: none;
    opacity: 0.8;
    filter: drop-shadow(0 0 18px rgba(27, 128, 79, 0.24));
}

.holiday-tree--left {
    left: clamp(1rem, 5vw, 5rem);
    transform: scale(0.78);
    transform-origin: bottom center;
}

.holiday-tree--right {
    right: clamp(1rem, 6vw, 6rem);
    transform: scale(1.05);
    transform-origin: bottom center;
}

.holiday-tree::before {
    content: '';
    position: absolute;
    inset: 12% 0 0;
    background: linear-gradient(135deg, #238558, #116347 58%, #0a3f3c);
    clip-path: polygon(
        50% 0, 64% 19%, 57% 19%, 76% 40%, 67% 40%,
        88% 62%, 78% 62%, 100% 86%, 0 86%, 22% 62%,
        12% 62%, 33% 40%, 24% 40%, 43% 19%, 36% 19%
    );
}

.holiday-tree-star {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: 1.1rem;
    height: 1.1rem;
    background: #ffe08a;
    clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 57%, 81% 100%, 50% 74%, 19% 100%, 31% 57%, 0 35%, 38% 35%);
    filter: drop-shadow(0 0 7px rgba(255, 224, 138, 0.9));
    transform: translateX(-50%);
}

.holiday-tree-trunk {
    position: absolute;
    bottom: 0;
    left: 43%;
    width: 14%;
    height: 17%;
    border-radius: 2px;
    background: #875531;
}

.holiday-tree-ornament {
    position: absolute;
    z-index: 1;
    width: 0.7rem;
    height: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.holiday-tree-ornament--red {
    top: 43%;
    left: 31%;
    color: #ff6268;
    background: #e83c45;
}

.holiday-tree-ornament--gold {
    top: 61%;
    left: 61%;
    color: #ffe08a;
    background: #ffc857;
}

.holiday-tree-ornament--orange {
    top: 73%;
    left: 36%;
    color: #ff8a50;
    background: #ff6a30;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0 1000px #1A4287 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.glass-card > .holiday-snowcap {
    position: absolute;
    top: -1px;
    left: 0;
    z-index: 4;
    width: 100%;
    height: 1.25rem;
    fill: #f3fbff;
    filter: drop-shadow(0 2px 3px rgba(196, 235, 255, 0.45));
    pointer-events: none;
}

.glass-card > .holiday-holly {
    position: absolute;
    top: 0.7rem;
    right: 0.65rem;
    z-index: 4;
    width: 2.8rem;
    height: 2.6rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.holiday-logo {
    position: relative;
}

.holiday-santa-hat {
    position: absolute;
    top: -0.65rem;
    left: -0.7rem;
    width: 2.5rem;
    height: 2rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    transform: rotate(-15deg);
    pointer-events: none;
}

.holiday-garland {
    position: absolute;
    top: 0;
    left: 9%;
    z-index: 2;
    width: 82%;
    height: 2rem;
    pointer-events: none;
}

.holiday-garland::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1.45rem;
    border-bottom: 1px solid rgba(183, 247, 220, 0.75);
    border-radius: 0 0 50% 50%;
}

.holiday-garland span {
    position: absolute;
    width: 0.55rem;
    height: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    animation: holiday-light-twinkle 1.8s ease-in-out infinite alternate;
}

.holiday-garland span:nth-child(1) { top: 0.5rem; left: 5%; }
.holiday-garland span:nth-child(2) { top: 0.95rem; left: 22%; animation-delay: 0.25s; }
.holiday-garland span:nth-child(3) { top: 1.15rem; left: 39%; animation-delay: 0.5s; }
.holiday-garland span:nth-child(4) { top: 1.15rem; left: 56%; animation-delay: 0.75s; }
.holiday-garland span:nth-child(5) { top: 0.95rem; left: 73%; animation-delay: 1s; }
.holiday-garland span:nth-child(6) { top: 0.5rem; left: 90%; animation-delay: 1.25s; }

.holiday-garland span:nth-child(4n + 1) {
    color: #ff6b72;
    background: #f04452;
}

.holiday-garland span:nth-child(4n + 2) {
    color: #ffe08a;
    background: #ffc857;
}

.holiday-garland span:nth-child(4n + 3) {
    color: #70e7a1;
    background: #31c978;
}

.holiday-garland span:nth-child(4n) {
    color: #76ddff;
    background: #37c6f4;
}

.holiday-garland span {
    box-shadow: 0 0 9px currentColor, 0 0 15px currentColor;
}

@keyframes holiday-light-twinkle {
    from { opacity: 0.55; filter: brightness(0.8); }
    to { opacity: 1; filter: brightness(1.45); }
}

.login-orbit-glow {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #22d3ee, #fff, #22d3ee, transparent);
    box-shadow: 0 0 8px #22d3ee, 0 0 16px rgba(34, 211, 238, 0.8);
    offset-path: inset(1px round 24px);
    offset-distance: 0%;
    offset-rotate: auto;
    pointer-events: none;
    animation: login-border-glow 6s linear infinite;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.glass-card > .login-orbit-glow,
.glass-card > .holiday-garland {
    position: absolute;
    z-index: 2;
}

.login-orbit-glow--second {
    animation-delay: -3s;
}

@keyframes login-border-glow {
    to {
        offset-distance: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-orbit-glow,
    .holiday-garland span,
    .holiday-top-lights span,
    .login-button-shine {
        animation: none;
    }
}

@media (max-height: 640px) {
    body .login-shell {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .login-shell .login-header {
        margin-bottom: 1rem;
    }

    #loginForm.space-y-5 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.875rem;
    }

    #username,
    #password {
        padding-top: 0.6875rem;
        padding-bottom: 0.6875rem;
    }

    #loginBtn {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .login-shell .login-footer {
        margin-top: 0.5rem;
    }
}

/* Bot¨Žn con estilos personalizados */
.btn-lightning {
    background: linear-gradient(135deg, #FF5500 0%, #E64A00 100%);
    box-shadow: 0 4px 20px rgba(255, 85, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-lightning:hover {
    background: linear-gradient(135deg, #ff661a 0%, #ff5500 100%);
    box-shadow: 0 6px 25px rgba(255, 85, 0, 0.6);
    transform: translateY(-1px);
}

.login-button-shine {
    background-size: 38% 100%, 100% 100%;
    background-position: -55% 0, 0 0;
    background-repeat: no-repeat;
    animation: login-button-glint 3.2s ease-in-out infinite;
}

@keyframes login-button-glint {
    0%, 15% { background-position: -55% 0, 0 0; }
    85%, 100% { background-position: 155% 0, 0 0; }
}

/* Animaciones y utilidades */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.4s ease-in-out;
}

/* Checkbox personalizado */
.custom-checkbox {
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    border: 2px solid #7185a3;
    border-radius: 0.3rem;
    background-color: rgba(4, 13, 30, 0.72);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.holiday-landscape {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: clamp(7rem, 19vh, 12rem);
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0 44%, rgba(6, 18, 38, 0.72) 45% 100%);
}

.holiday-landscape::before,
.holiday-landscape::after {
    position: absolute;
    right: -8%;
    bottom: 1.5rem;
    left: -8%;
    height: 75%;
    content: '';
    border-radius: 50% 50% 0 0 / 38% 38% 0 0;
}

.holiday-landscape::before {
    background: linear-gradient(180deg, rgba(20, 54, 91, 0.78), rgba(7, 24, 49, 0.96));
    transform: translateY(36%);
}

.holiday-landscape::after {
    right: 35%;
    left: -25%;
    height: 63%;
    background: linear-gradient(180deg, rgba(14, 46, 103, 0.72), rgba(6, 20, 43, 0.97));
    transform: translateY(53%);
}

.login-shell {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.glass-card {
    padding: clamp(1.75rem, 5vw, 2.75rem);
    border: 1px solid rgba(230, 124, 54, 0.38);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(12, 27, 53, 0.96), rgba(8, 20, 42, 0.96));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52), 0 0 38px rgba(14, 46, 103, 0.28);
    isolation: isolate;
}

.glass-card > .holiday-snowcap {
    opacity: 0.72;
}

.login-header {
    margin-bottom: 1.75rem;
}

.login-header h1 {
    margin-top: 0.2rem;
    font-size: clamp(1.85rem, 6vw, 2.35rem);
    letter-spacing: -0.035em;
    text-shadow: 0 0 22px rgba(230, 74, 0, 0.2);
}

.login-header h1 span {
    margin-left: 0.22rem;
}

.login-header .login-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
}

.holiday-greeting {
    margin-top: 1.1rem;
    color: #ffdc72;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.9rem, 6vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    text-shadow: 0 0 16px rgba(255, 220, 114, 0.16);
}

.holiday-subtitle {
    margin-top: 0.35rem;
    color: #aeb8c8;
    font-size: 0.94rem;
    line-height: 1.5;
}

.login-label {
    display: block;
    margin: 0 0 0.5rem 0.1rem;
    color: #c3d0e4;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-input {
    min-height: 3.35rem;
    border: 1px solid rgba(128, 157, 196, 0.28);
    border-radius: 0.8rem;
    background: rgba(4, 13, 30, 0.72);
    font-size: 0.92rem;
}

.login-input:focus {
    border-color: #f06a26;
    box-shadow: 0 0 0 3px rgba(230, 74, 0, 0.16);
}

.login-input::placeholder {
    color: #8493aa;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    z-index: 2;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 0;
    background: transparent;
    color: #94a8c4;
    cursor: pointer;
    font-size: 1.15rem;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #ff985d;
}

.password-toggle:focus-visible {
    border-radius: 0.4rem;
    outline: 2px solid #ff985d;
    outline-offset: 2px;
}

.custom-checkbox:checked {
    border-color: #e64a00;
    background-color: #e64a00;
}

.btn-lightning,
.login-button-shine {
    min-height: 3.4rem;
    border: 1px solid rgba(255, 149, 91, 0.42);
    border-radius: 0.8rem;
    background-image:
        linear-gradient(112deg, transparent 0%, rgba(255, 255, 255, 0.08) 36%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.08) 64%, transparent 100%),
        linear-gradient(135deg, #ed5a13 0%, #c93c00 100%);
    box-shadow: 0 8px 26px rgba(230, 74, 0, 0.26);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.login-button-shine i {
    margin-left: 0.45rem;
    font-size: 1rem;
    vertical-align: -0.12rem;
}

.login-button-shine:hover {
    background-image:
        linear-gradient(112deg, transparent 0%, rgba(255, 255, 255, 0.08) 36%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.08) 64%, transparent 100%),
        linear-gradient(135deg, #ff7029 0%, #e64a00 100%);
    box-shadow: 0 10px 30px rgba(230, 74, 0, 0.38);
}

.login-hint {
    display: flex;
    justify-content: center;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #8798b2;
    font-size: 0.68rem;
    text-align: center;
}

.login-footer {
    color: #a0aec2;
    font-size: 0.68rem;
}

@media (max-width: 520px) {
    body {
        padding: 1rem 0;
    }

    .login-shell {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .glass-card {
        padding: 1.75rem 1.35rem;
    }

    .holiday-tree {
        bottom: 0.5rem;
        opacity: 0.34;
    }

    .holiday-tree--left {
        left: -1.5rem;
    }

    .holiday-tree--right {
        right: -1.5rem;
    }

    .login-hint {
        line-height: 1.5;
    }
}

@media (max-height: 640px) {
    body .login-shell {
        padding-top: 0;
        padding-bottom: 0;
    }

    .glass-card {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .holiday-landscape {
        height: 6rem;
    }
}