/* --- START OF FILE public/css/login.css (PHIÊN BẢN MÀU XANH) --- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Roboto:wght@400;700&display=swap');

:root {
    /* [THAY ĐỔI] Sử dụng biến màu xanh từ global.css */
    --primary-gold: var(--primary-red);
    --dark-gold: var(--secondary-red);
    --panel-bg: #0a0a0a;
}

/* === NỀN VÀ HIỆU ỨNG TĨNH === */
@keyframes background-breathing {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

body.full-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    padding: 20px;
    background-color: #000;
    background-size: cover;
    background-position: center;
    /* Ảnh PC cho trang login */
    background-image: url('/assets/images/background-pc.png'); 
}

@media (max-width: 768px) {
    body.full-page {
        /* Ảnh Mobile cho trang login */
        background-image: url('/assets/images/background-mobile.png');
    }
}

body.full-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.smoke-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/fog.png');
    opacity: 0.15;
    animation: smoke-move 40s linear infinite alternate;
    z-index: 2;
}
@keyframes smoke-move {
    from { background-position: 0 0; }
    to { background-position: -500px 100px; }
}

/* === LOGIN PANEL VỚI HIỆU ỨNG LED RGB === */
.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 3;
}

.login-form-panel {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 2px;
    background: #111;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    min-height: 560px;
    display: flex;
}

/* Hiệu ứng viền LED RGB (Giữ nguyên đa màu) */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-rgb {
  to { --angle: 360deg; }
}
.login-form-panel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 150%;
    aspect-ratio: 1 / 1;
    background: conic-gradient(
        from var(--angle),
        #ff2770, #00bfff, #0f0, #ff0, #ff2770
    );
    animation: spin-rgb 3s linear infinite;
}

.login-form-inner {
    background: var(--panel-bg);
    border-radius: 10px;
    padding: 35px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Hiệu ứng góc vuông công nghệ */
.login-form-inner::before,
.login-form-inner::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-style: solid;
    border-color: var(--primary-gold);
    animation: corner-pulse 3s infinite ease-in-out;
}
@keyframes corner-pulse {
    50% { filter: drop-shadow(0 0 8px var(--primary-gold)); }
}
.login-form-inner::before {
    top: 15px;
    left: 15px;
    border-width: 3px 0 0 3px;
}
.login-form-inner::after {
    bottom: 15px;
    right: 15px;
    border-width: 0 3px 3px 0;
}

/* === HIỆU ỨNG LOGO === */
@keyframes logo-pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px var(--primary-gold));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px var(--primary-gold));
    }
}
.login-logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    animation: logo-pulse-glow 3s infinite ease-in-out;
}

/* === FORM ELEMENTS CHUNG === */
.login-form-panel h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--primary-gold);
    text-shadow: 0 0 10px var(--dark-gold);
}
.slogan-text {
    text-align: center;
    color: #aaa;
    font-size: 0.8em;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === HIỆU ỨNG Ô NHẬP LIỆU (INPUT) === */
.form-group {
    position: relative;
    margin-bottom: 30px;
}
.form-group input {
    width: 100%;
    padding: 10px 0;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #444;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    z-index: 1;
}
.form-group input:focus {
    outline: none;
    border-bottom-color: var(--primary-gold);
}
.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #888;
    font-size: 1em;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 0;
}
.form-group input:focus + label,
.form-group input:valid + label {
    top: -15px;
    left: 0;
    font-size: 0.8em;
    color: var(--primary-gold);
}
.form-group::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
    box-shadow: 0 0 10px var(--primary-gold);
}
.form-group input:focus ~ .form-group::after,
.form-group input:focus::after {
    transform: scaleX(1);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(180deg, var(--primary-gold), var(--dark-gold));
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    border: 1px solid var(--primary-gold);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    margin-top: 10px;
}
.btn-primary:hover {
    box-shadow: 0 0 20px var(--dark-gold);
}
#toggle-btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    background: transparent !important;
    border: none !important;
    color: #999;
    font-size: 0.9em;
    font-weight: 500;
    padding: 5px 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}
#toggle-btn:hover {
    color: var(--primary-gold);
    text-decoration: underline;
    transform: scale(1.05);
}

#message { text-align: center; margin-top: 20px; font-weight: bold; height: 20px; }
.success { color: #28a745; }
.error { color: #e74c3c; }

/* Responsive & Utilities */
.toggle-password-btn { 
    position: absolute; 
    top: 5px;
    right: 0; 
    cursor: pointer; 
    color: #666; 
    z-index: 2;
}
.toggle-password-btn:hover { color: var(--primary-gold); }
.toggle-password-btn svg { width: 20px; height: 20px; }
input[type="password"], input[type="text"].password-shown { padding-right: 0; }

/* === HIỆU ỨNG ĐÈN LỒNG BAY === */
.lantern-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; pointer-events: none; z-index: 1;
}
.lantern {
    position: absolute;
    bottom: -150px;
    background-image: url('/assets/images/lantern.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 80px; height: 120px;
    animation: floatUp 20s linear infinite, flicker 5s infinite alternate;
}
@keyframes floatUp {
    to { transform: translateY(-120vh) translateX(20px) rotate(5deg); }
}
@keyframes flicker {
    0%, 100% { opacity: 0.7; filter: blur(1px) brightness(0.9); }
    50% { opacity: 0.5; filter: blur(1px) brightness(1.1); }
}
.lantern:nth-child(2) { left: 10%; animation-duration: 25s; animation-delay: 5s; width: 60px; height: 90px; }
.lantern:nth-child(3) { left: 75%; animation-duration: 18s; animation-delay: 2s; }
.lantern:nth-child(4) { left: 85%; animation-duration: 22s; animation-delay: 8s; width: 70px; height: 105px; }
.lantern:nth-child(5) { left: 40%; animation-duration: 28s; animation-delay: 1s; }
.lantern:nth-child(6) { left: 25%; animation-duration: 19s; animation-delay: 6s; width: 90px; height: 135px; }
.lantern:nth-child(7) { left: 5%; animation-duration: 23s; animation-delay: 10s; }
.lantern:nth-child(8) { left: 90%; animation-duration: 20s; animation-delay: 1s; }
.lantern:nth-child(9) { left: 60%; animation-duration: 30s; animation-delay: 3s; width: 50px; height: 75px; }
.lantern:nth-child(10) { left: 33%; animation-duration: 17s; animation-delay: 7s; }
.lantern:nth-child(11) { left: 50%; animation-duration: 24s; animation-delay: 0s; }
.lantern:nth-child(12) { left: 68%; animation-duration: 21s; animation-delay: 9s; }
.lantern:nth-child(13) { left: 18%; animation-duration: 29s; animation-delay: 12s; }
.lantern:nth-child(14) { left: 80%; animation-duration: 16s; animation-delay: 4s; }
.lantern:nth-child(15) { left: 2%; animation-duration: 26s; animation-delay: 1s; }

