/* Global Styles */
* {
    font-family: 'Montserrat', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 #1a1a1a;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background: black;
}

/* Main Section */
.main-section {
    background-image: url('./asset/img/bg_pc.webp');
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .main-section {
        background-image: url('./asset/img/bg_mobile.webp');
        padding: 12px;
    }
}

/* Form Container */
.form-container {
    background-image: url('./asset/img/board_login.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 95%;
    max-width: 450px;
    min-height: 240px;
    height: auto;
    position: relative;
    transition: height 0.3s ease;
}

#registerForm {
    min-height: 240px;
}

/* Input Styles */
.input-username {
    background-image: url('./asset/img/taikhoan.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 55px;
    display: flex;
    align-items: center;
}

.input-password {
    background-image: url('./asset/img/matkhau.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 55px;
    display: flex;
    align-items: center;
}

/* Button Styles */
.btn-login {
    background-image: url('./asset/img/btn_dangnhap.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 55px;
    width: 100%;
}

.btn-register {
    background-image: url('./asset/img/btn_taotaikhoan.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 55px;
    width: 100%;
}

/* Placeholder Styles */
.input-username::placeholder,
.input-password::placeholder {
    color: #30452E !important;
    opacity: 1;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.input-username::-webkit-input-placeholder,
.input-password::-webkit-input-placeholder {
    color: #30452E !important;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.input-username::-moz-placeholder,
.input-password::-moz-placeholder {
    color: #30452E !important;
    opacity: 1;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.input-username:-ms-input-placeholder,
.input-password:-ms-input-placeholder {
    color: #30452E !important;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

/* Input Fields */
.input-username,
.input-password {
    font-family: 'Montserrat', sans-serif;
}

/* Buttons */
button {
    font-family: 'Montserrat', sans-serif;
}

/* All text elements */
p, span, div, a, label {
    font-family: 'Montserrat', sans-serif;
}

/* Layout Columns */
.fixed-column {
    position: fixed;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
}

.left-column {
    left: 0;
    width: 25vw;
    padding: 20px;
}

.right-column {
    right: 0;
    width: 25vw;
    padding: 20px;
}

.center-column {
    margin-left: 25vw;
    margin-right: 25vw;
    width: 50vw;
    min-height: 100vh;
    padding-top: 0;
}

/* Video Slider */
.video-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    width: 95%;
    height: 250px;
    margin: 0 auto;
    border: 3px solid #FFD700;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 10px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
        border-color: #FFD700;
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
        border-color: #FFF700;
    }
}

.video-slider video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.video-slider video.active {
    display: block;
}

.live-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px; 
    z-index: 2;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.video-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 1;
}


.gold-border {
    border: 2px solid #F5E6A3;
    border-radius: 8px;
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 15px 0 10px 0;
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b39700;
}

.logo-section img {
    margin-top:48px;
    height: 180px;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Title Section */
.title-section {
    background-image: url('./asset/img/title_pc.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 90px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Banner and Social Icons */
.banner-left {
    width: 95%;
    height: auto;
    max-width: 400px;
}

.social-icons {
    width: 95%;
    margin: 0 auto;
}

.social-icon {
    width: 50px;
    height: 50px;
}

/* Download buttons styles */
.download-btn {
    display: inline-block;
    text-decoration: none;
}

.download-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
}

.download-btn:hover .download-container {
    transform: translateY(-2px);
}

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

/* Custom Scrollbar */
.fixed-column::-webkit-scrollbar {
    width: 8px;
}

.fixed-column::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

.fixed-column::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.fixed-column::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Tablet breakpoint (768px - 1279px): Chỉ hiển thị Center Column (Form) và Content */
@media (max-width: 1279px) and (min-width: 768px) {
    .left-column, .right-column {
        display: none !important;
    }

    .column, .center-column {
        margin: 0;
        width: 100%;
    }

    /* Hiển thị CTA section chỉ trên tablet */
    .tablet-only-cta {
        display: block !important;
        padding: 20px 0;
    }
}

/* Mobile breakpoint (<768px): Chỉ hiển thị Right Column và Content */
@media (max-width: 767px) {
    .left-column {
        display: none !important;
    }

    .column {
        display: none !important;
    }

    .center-column {
        margin: 0 !important;
        width: 100% !important;
        padding: 10px !important;
    }

    .right-column {
        position: relative !important;
        width: 100% !important;
        padding: 20px !important;
        height: auto !important;
    }

    .video-slider {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

/* Mobile download button styles */
#mobile-download-container {
    transition: all 0.3s ease;
}

#mobile-download-container a {
    transition: transform 0.2s ease;
}

#mobile-download-container a:hover {
    transform: translateY(-2px);
}

/* Ensure mobile download section is properly styled on mobile only */
@media (max-width: 767px) {
    #mobile-download-container {
        padding: 20px 0;
        margin: 20px 0;
    }
}