/* === GIAO DIỆN ĐĂNG NHẬP HIGH-TECH (DARK SCI-FI) === */
.full-page { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    overflow-y: auto; 
    position: relative; 
    padding: 20px; 
    box-sizing: border-box;
}

/* Hình nền PC mặc định lấy từ user.css */
#page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('/assets/images/IronxSlot-background.jpg');
    background-size: cover;
    background-position: center center;
}

#matrix-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    pointer-events: none;
}

#space-dust-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); opacity: 0.2;
}

/* Khung viền góc sáng công nghệ */
.digital-frame-corner { 
    position: fixed; 
    width: 40px; 
    height: 40px; 
    border-color: rgba(255, 153, 0, 0.6); 
    border-style: solid; 
    z-index: 2; 
    animation: pulse-frame 3s infinite ease-in-out; 
}
.corner-tl { top: 20px; left: 20px; border-width: 4px 0 0 4px; } 
.corner-tr { top: 20px; right: 20px; border-width: 4px 4px 0 0; } 
.corner-bl { bottom: 20px; left: 20px; border-width: 0 0 4px 4px; } 
.corner-br { bottom: 20px; right: 20px; border-width: 0 4px 4px 0; }

@keyframes pulse-frame { 
    0% { opacity: 0.4; filter: drop-shadow(0 0 2px var(--primary-red)); } 
    50% { opacity: 1; filter: drop-shadow(0 0 8px var(--primary-red)); } 
    100% { opacity: 0.4; filter: drop-shadow(0 0 2px var(--primary-red)); } 
}

/* Khung Login dạng Glassmorphism gom làm một khối căn giữa cực xịn */
.login-container { 
    width: 100%;
    max-width: 440px;
    background: rgba(10, 5, 2, 0.82); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px; 
    position: relative; 
    overflow: hidden; 
    z-index: 3; 
    border: 1px solid rgba(255, 153, 0, 0.4); 
    box-shadow: 0 0 40px rgba(255, 153, 0, 0.25), inset 0 0 20px rgba(255, 153, 0, 0.1); 
    animation: glowing-border 4s infinite ease-in-out; 
    padding: 35px 30px;
    box-sizing: border-box;
}

@keyframes glowing-border { 
    0% { box-shadow: 0 0 25px rgba(255, 153, 0, 0.2); border-color: rgba(255, 153, 0, 0.3); } 
    50% { box-shadow: 0 0 45px rgba(255, 153, 0, 0.5); border-color: rgba(255, 153, 0, 0.8); } 
    100% { box-shadow: 0 0 25px rgba(255, 153, 0, 0.2); border-color: rgba(255, 153, 0, 0.3); } 
}

/* Header bên trong form */
.login-brand-header {
    text-align: center;
    margin-bottom: 25px;
}

.brand-logo-glow {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px auto;
    background: radial-gradient(circle, rgba(255,153,0,0.3) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,153,0,0.5);
    box-shadow: 0 0 15px rgba(255,153,0,0.4);
    animation: bot-float 3s infinite ease-in-out;
}

.brand-logo-glow img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

@keyframes bot-float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-5px); } 
}

.login-brand-header h2 { 
    color: #fff; 
    margin: 0 0 5px 0; 
    font-size: 1.8em; 
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-red);
}

.slogan-text { 
    text-align: center; 
    color: #f1a843; 
    font-size: 0.8em; 
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255,153,0,0.5);
}

.login-form-wrapper { 
    width: 100%;
}

.form-group { 
    margin-bottom: 18px; 
    position: relative; 
}

input { 
    width: 100%; 
    padding: 14px 18px; 
    border: 1px solid rgba(255, 153, 0, 0.3); 
    background-color: rgba(0, 0, 0, 0.6); 
    color: #fff; 
    border-radius: 12px; 
    box-sizing: border-box; 
    font-size: 1em; 
    transition: all 0.3s ease; 
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input:focus { 
    outline: none; 
    border-color: var(--primary-red); 
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.4); 
    background-color: rgba(0, 0, 0, 0.8);
}

.btn-secondary { 
    width: 100%; 
    padding: 12px; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 0.95em; 
    background-color: rgba(255, 255, 255, 0.08); 
    color: #ddd; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    transition: all 0.3s; 
    margin-top: 15px;
}

.btn-secondary:hover { 
    background-color: rgba(255, 255, 255, 0.15); 
    color: #fff;
    border-color: rgba(255, 153, 0, 0.5);
}

#message { 
    text-align: center; 
    margin-top: 15px; 
    font-weight: bold; 
    font-size: 0.9em;
    min-height: 20px; 
}

.success { color: #00ff8c; text-shadow: 0 0 8px rgba(0,255,140,0.5); } 
.error { color: #ff3333; text-shadow: 0 0 8px rgba(255,51,51,0.5); }

/* Nút ẩn/hiện mật khẩu */
.toggle-password-btn { 
    position: absolute; 
    top: 50%; 
    right: 15px; 
    transform: translateY(-50%); 
    cursor: pointer; 
    color: #888; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 10; 
    background: none; 
    border: none; 
    padding: 0; 
}
.toggle-password-btn:hover { color: var(--primary-red); }
.toggle-password-btn svg { width: 20px; height: 20px; }
input[type="password"], input[type="text"].password-shown { padding-right: 45px; }

/* Responsive cho Mobile tự động chuyển sang hình nền mobile */
@media (max-width: 768px) {
    .full-page { 
        padding: 15px; 
        align-items: center; 
    }
    .digital-frame-corner { display: none; }
    
    #page-background {
        background-image: url('/assets/images/IronxSlot-background-mobile.jpg') !important;
        background-size: cover !important;
    }

    .login-container { 
        width: 100%; 
        max-width: 100%;
        padding: 25px 20px; 
        border-radius: 16px; 
        background: rgba(10, 5, 2, 0.88); 
    }
}