/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Layout */
.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.layout.loaded {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-circle-inner {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border: 3px solid #e2e8f0;
    border-bottom: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.spinner-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 6px;
}

.spinner-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: bounce 0.6s ease-in-out infinite;
}

.spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; }

/* Form Toggle */
.content-box {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-box.active {
    display: block;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo_game img {
    transition: transform 0.3s ease;
}

.logo_game img:hover {
    transform: scale(1.1);
}

.right-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #1e293b;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 24px;
    background: #ffffff;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 12px 16px;
    text-decoration: none;
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.mobile-menu a:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

/* Main Content */
.container {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px;
}

.banner {
    margin-bottom: 32px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* Content Box */
.content-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    max-width: 480px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.content-box__header {
    text-align: center;
    margin-bottom: 24px;
}

.content-box__header span {
    font-size: 26px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
}

.form-item {
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.form-item input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-item input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-login:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.extra-info {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.error-mess {
    color: #ef4444;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    margin-bottom: 16px;
    text-align: center;
}

.error-mess.fade-in {
    opacity: 1;
}

.forget-pass {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forget-pass:hover {
    text-decoration: underline;
    color: #2563eb;
}

.login-other {
    margin-top: 24px;
    text-align: center;
}

.login-other-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dash {
    width: 40px;
    height: 1px;
    background: #d1d5db;
    margin: 0 12px;
}

.login-other-title p {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

.list-action {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.login-type {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-type img {
    width: 20px;
    margin-right: 8px;
}

.login-type:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 24px 0;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 28px;
    margin-bottom: 8px;
}

.footer-logo .title {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #2563eb;
}

.copyright {
    font-size: 12px;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0 16px;
    }

    .logo_game img {
        width: 70px;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        top: 60px;
        right: 16px;
        width: 200px;
    }

    .container {
        padding: 16px;
    }

    .banner-img {
        max-height: 300px;
    }

    .content-box {
        padding: 24px;
        max-width: 100%;
    }

    .content-box__header span {
        font-size: 22px;
    }

    .form-item input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-login {
        padding: 12px;
        font-size: 15px;
    }

    .list-action {
        gap: 12px;
    }

    .login-type {
        padding: 8px 12px;
        font-size: 13px;
    }

    .login-type img {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 56px;
    }

    .logo_game img {
        width: 60px;
    }

    .mobile-menu {
        width: 180px;
        right: 12px;
    }

    .banner-img {
        max-height: 200px;
    }

    .content-box {
        padding: 16px;
    }

    .content-box__header span {
        font-size: 20px;
    }

    .form-item label {
        font-size: 13px;
    }

    .form-item input {
        padding: 8px 10px;
        font-size: 13px;
    }

    .btn-login {
        padding: 10px;
        font-size: 14px;
    }

    .extra-info {
        font-size: 13px;
    }

    .login-other-title p {
        font-size: 14px;
    }

    .dash {
        width: 30px;
    }

    .list-action {
        gap: 8px;
    }

    .login-type {
        padding: 6px 10px;
        font-size: 12px;
    }

    .login-type img {
        width: 16px;
    }

    .footer-content {
        padding: 0 12px;
    }

    .footer-logo img {
        height: 24px;
    }

    .footer-logo .title {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .copyright {
        font-size: 11px;
    }
}