﻿/* =========================================
   1. CORE STYLES (Mặc định - Galaxy Blue)
   ========================================= */

/* Chặn ads Somee */
body > div[style*="z-index"], body > div[id*="ads"], body iframe[src*="somee.com"],
body center a[href*="somee.com"], #app-container > div[style*="z-index"],
div[style*="position:fixed"][style*="z-index"] {
    display: none !important;
}

/* Font mặc định */
html, body, * {
    font-family: 'Audiowide', sans-serif;
}

body {
    background-color: #0a0e1a;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a2332 30%, #0f1419 70%, #050a0f 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #ffffff;
    overflow-x: hidden;
}

    /* Background Stars Animation (Mặc định) */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 40px 70px, rgba(6,72,255,0.6), transparent);
        background-repeat: repeat;
        background-size: 400px 300px;
        animation: moveStars 25s linear infinite;
        z-index: -1;
    }

@keyframes moveStars {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-300px);
    }
}

/* Cards */
.glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid #3f72ff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.form-glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(25px);
    border: 1px solid #3f72ff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Logo */
.logo-text {
    background: linear-gradient(135deg, #0648FF 0%, #4a90e2 50%, #74b9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(6,72,255,0.6);
}

.logo-container {
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Form Inputs */
.form-floating > .form-control {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(6,72,255,0.25);
    border-radius: 15px;
    color: #fff;
    height: 58px;
    transition: all 0.3s ease;
}

    .form-floating > .form-control:focus {
        background: rgba(255,255,255,0.12);
        border-color: #0648FF;
        box-shadow: 0 0 20px rgba(6,72,255,0.3);
    }

.form-floating > label {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* Twinkle & Particle (Mặc định) */
.twinkle {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    opacity: 0;
    animation: twinkle 2s ease-in-out infinite alternate;
    text-shadow: 0 0 4px rgba(255,255,255,0.9);
}

@keyframes twinkle {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle,#0648FF,#4a90e2);
    animation: float-particle 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(6,72,255,0.6);
}

@keyframes float-particle {
    0%,100% {
        transform: translate(0,0);
        opacity: 0.3;
    }

    50% {
        transform: translate(10px,-20px);
        opacity: 1;
    }
}

/* Button Gradient */
.btn-gradient {
    background: linear-gradient(135deg, #0648FF 0%, #4a90e2 50%, #0648FF 100%);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(6, 72, 255, 0.25);
    transition: all 0.3s ease;
}

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(6, 72, 255, 0.4);
        background: linear-gradient(135deg, #4a90e2 0%, #0648FF 50%, #4a90e2 100%);
        color: #fff;
    }

/* Social & Links */
.btn-social {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(6, 72, 255, 0.2);
    border-radius: 15px;
    padding: 0.8rem 1.5rem;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-social:hover {
        background: #fff;
        border-color: #0648FF;
        color: #0648FF;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(6, 72, 255, 0.2);
    }

.modern-link {
    color: #74b9ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .modern-link:hover {
        color: #fff;
        text-shadow: 0 0 10px rgba(116, 185, 255, 0.5);
    }


/* ==========================================================
   2. TET THEME OVERRIDES (GHI ĐÈ KHI CÓ CLASS .tet-theme)
   ========================================================== */

/* 2.1 Background Đỏ Tết */
body.tet-theme {
    background: #8E0E00; /* Đỏ đô */
    background: linear-gradient(135deg, #8E0E00 0%, #C20404 40%, #500000 100%);
}
    /* Ẩn các ngôi sao nền mặc định */
    body.tet-theme::before {
        display: none;
    }

/* 2.2 Đổi màu Card sang viền Vàng */
.tet-theme .glass-card,
.tet-theme .form-glass-card {
    background: rgba(80, 0, 0, 0.4); /* Nền đỏ trong suốt */
    border: 1px solid rgba(255, 215, 0, 0.6) !important; /* Viền Vàng */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.1);
}

/* 2.3 Logo Vàng Kim */
.tet-theme .logo-text {
    background: linear-gradient(to bottom, #FFD700, #FDB931);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.8); /* Glow cam đỏ */
}

/* 2.4 Input Form (Viền vàng khi focus) */
.tet-theme .form-floating > .form-control {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

    .tet-theme .form-floating > .form-control:focus {
        border-color: #FFD700;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
        background: rgba(255, 215, 0, 0.05);
    }

/* 2.5 Nút Bấm Gradient Vàng/Cam */
.tet-theme .btn-gradient {
    background: linear-gradient(45deg, #FFD700, #FF8C00); /* Vàng sang Cam */
    color: #8E0E00; /* Chữ màu đỏ đậm */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-shadow: none;
}

    .tet-theme .btn-gradient:hover {
        background: linear-gradient(45deg, #FF8C00, #FFD700);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
        color: #500000;
    }

/* 2.6 Link & Text highlight */
.tet-theme .modern-link {
    color: #FFD700;
}

    .tet-theme .modern-link:hover {
        color: #FFF;
        text-shadow: 0 0 10px #FFD700;
    }

/* 2.7 Decoration Icons (Màu cho icon trang trí) */
.tet-theme .icon-deco-1 {
    color: rgba(255, 215, 0, 0.8) !important;
    filter: drop-shadow(0 0 5px red);
}

.tet-theme .icon-deco-2 {
    color: rgba(255, 100, 100, 0.8) !important;
}

/* 2.8 Particle thành bụi vàng/hoa */
.tet-theme .particle {
    background: radial-gradient(circle, #FFD700, #FF4500);
    box-shadow: 0 0 8px #FFD700;
    opacity: 0.8;
}

/* Animation Con Lân bay */
.lan-twinkle {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
    animation: lanFloat 6s ease-in-out infinite alternate;
    opacity: 0.8;
}

@keyframes lanFloat {
    0% {
        transform: translateY(0) rotate(-5deg) scale(0.9);
    }

    100% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
    }
}
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
