body {
    background-color: #0a1a35;
    font-family: 'Source Sans Pro', sans-serif;
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(120deg, #071428 0%, #1a3a6a 100%);
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    display: block;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

/* Chia đôi màn hình */
.login-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Phần bên trái chứa logo NETVIRAL SERVICES - thay đổi background thành hình ảnh */
.brand-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('https://image-0.uhdpaper.com/wallpaper/iphone-14-abstract-ios-16-blue-4k-wallpaper-uhdpaper.com-39@0@h.jpg') center center;
    background-size: cover;
    z-index: 0;
}

/* Thêm overlay để đảm bảo text đọc được trên nền ảnh */
.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 45, 96, 0.4); /* Overlay màu xanh với độ trong suốt */
    z-index: -1;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    position: relative;
}

/* Style cho chữ NETVIRAL - điều chỉnh để đọc được rõ hơn trên nền ảnh */
.netviral {
    font-family: "Monoton", sans-serif;
    font-size: 96px;
    font-weight: 400;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.4);
    animation: slideFromTop 1.5s ease forwards;
    opacity: 0;
    transform: translateY(-100px);
}

/* Style cho chữ SERVICES - điều chỉnh để đọc được rõ hơn trên nền ảnh */
.services {
    font-family: "Londrina Sketch", sans-serif;
    font-size: 72px;
    font-weight: 400;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.4);
    animation: slideFromBottom 1.5s ease forwards;
    opacity: 0;
    transform: translateY(100px);
    margin-top: -10px;
}

/* Animation cho NETVIRAL (từ trên xuống) */
@keyframes slideFromTop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation cho SERVICES (từ dưới lên) */
@keyframes slideFromBottom {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Phần bên phải chứa form đăng nhập - đổi sang màu gradient */
.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e2e6ea, #ced4da);
    position: relative;
    z-index: 0;
}

.login-box {
    width: 480px;
    position: relative;
    z-index: 2;
}

.login-logo {
    margin-bottom: 25px;
}

.login-logo a {
    color: #1a237e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.wrapper {
    background: transparent;
    border: 2px solid #000000; /* Thêm border màu đen */
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Tăng độ đậm của shadow */
    color: #071428;
    padding: 1px 1px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.login-card-body {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 36px;
}

/* Cải thiện animation cho input-group */
.input-group {
    margin-bottom: 20px !important;
    position: relative;
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.5s ease;
}

/* Animation class for input groups */
.input-group.animate-slide {
    transform: translateX(0);
    opacity: 1;
}

/* Đảm bảo input và icon di chuyển cùng nhau */
.input-group .form-control,
.input-group-append {
    will-change: transform; /* Tối ưu hiệu suất animation */
}

/* Xóa animation riêng lẻ cho các input để tránh xung đột */
.input-group .form-control.animate__animated,
.input-group-append .animate__animated {
    animation: none !important;
}

/* Input style */
.input-group .form-control {
    border-radius: 25px 0 0 25px;
    padding: 12px 15px;
    border: 1px solid #000;
    background-color: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group-text {
    border-radius: 0 25px 25px 0;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #000;
    border-left: none;
    color: #3f51b5;
    padding: 0 15px;
    transition: all 0.3s ease;
}

/* Focus effect synchronized */
.input-group .form-control:focus {
    background-color: #fff;
    border: 2px solid #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.input-group .form-control:focus + .input-group-append .input-group-text {
    border-width: 2px;
    border-color: #007bff;
}

/* Tạo hiệu ứng đẹp mắt khi hover vào input group */
.input-group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.btn-primary {
    background-color: #3f51b5;
    border-color: #3f51b5;
    border-radius: 25px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #303f9f;
    border-color: #303f9f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-auth-links {
    margin-top: 25px;
}

.social-auth-links .btn {
    border-radius: 25px;
    padding: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-auth-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-card-body a {
    color: #303f9f;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-card-body a:hover {
    color: #1a237e;
    text-decoration: none;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-text {
    color: #071428;
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0 15px;
    text-shadow: none;
}

.logo-text::before, .logo-text::after {
    content: '';
    position: absolute;
    height: 3px;
    bottom: -10px;
    background: linear-gradient(90deg, #071428, #1a3a6a);
}

.logo-text::before {
    left: 0;
    width: 30%;
}

.logo-text::after {
    right: 0;
    width: 30%;
}

.icheck-primary label {
    color: #071428;
    font-weight: 500;
}

/* Định dạng cho chữ NETVIRAL và Service - làm sáng hơn nữa */
.brand-text {
    font-family: 'Monoton', cursive;
    position: absolute;
    z-index: 0;
    color: rgba(255, 255, 255, 0.4); /* Tăng độ sáng từ 0.2 lên 0.4 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4);
    user-select: none;
    opacity: 0;
}

.brand-text.left {
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    animation: slideInLeft 1.5s ease forwards;
}

.brand-text.right {
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    animation: slideInRight 1.5s ease forwards;
}

/* Hiệu ứng cho chữ bên trái slide vào - không thay đổi */
@keyframes slideInLeft {
    0% {
        left: -200px;
        opacity: 0;
    }
    100% {
        left: 50px;
        opacity: 1;
    }
}

/* Hiệu ứng cho chữ bên phải slide vào - để gần form hơn 15% */
@keyframes slideInRight {
    0% {
        right: -200px;
        opacity: 0;
    }
    100% {
        right: 120px; /* Điều chỉnh từ 50px lên 120px để gần form hơn ~15% */
        opacity: 1;
    }
}

/* Media queries để đảm bảo màn hình nhỏ không hiển thị text */
@media (max-width: 1400px) {
    .brand-text {
        font-size: 80px;
    }
}

@media (max-width: 1200px) {
    .brand-text {
        font-size: 60px;
    }
}

@media (max-width: 992px) {
    .brand-text {
        display: none;
    }
}

/* Điều chỉnh nút đăng nhập chính */
.btn-login {
    background-color: #007bff; /* Màu xanh trong hơn */
    border-color: #007bff;
    border-radius: 25px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    font-size: 16px;
}

.btn-login:hover {
    background-color: #0069d9;
    border-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Điều chỉnh phần quên mật khẩu/đăng ký để cân đối hơn sau khi bỏ nút social */
.auth-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.auth-links a {
    color: #1a3a6a;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #071428;
    text-decoration: none;
}

/* Media queries để đảm bảo responsive */
@media (max-width: 1200px) {
    .netviral {
        font-size: 72px;
    }
    
    .services {
        font-size: 54px;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .brand-section {
        height: 30vh;
        min-height: 200px;
    }
    
    .form-section {
        height: 70vh;
    }
    
    .login-box {
        width: 90%;
        max-width: 480px;
    }
    
    .netviral {
        font-size: 60px;
    }
    
    .services {
        font-size: 48px;
    }
}

@media (max-width: 576px) {
    .login-box {
        width: 90%;
        max-width: 480px;
    }
    
    .netviral {
        font-size: 48px;
    }
    
    .services {
        font-size: 36px;
    }
    
    .login-card-body {
        padding: 24px;
    }
}

/* Thêm style cho phần thông tin liên hệ và slogan */
.contact-info {
    position: absolute;
    bottom: -20vh; /* Thay đổi từ -45vh lên -20vh để di chuyển lên trên 25% */
    left: 0;
    width: 100%;
    color: #fff;
    padding: 15px;
    text-align: center;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 2s;
    opacity: 0;
}

.contact-container {
    position: absolute;
    bottom: -17vh; /* Thay đổi từ -20vh xuống -25vh để di chuyển xuống thêm 15% */
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 2s;
    opacity: 0;
    display: flex;
    justify-content: center;
}

.slogan {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slogan p {
    margin: 0;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.contact-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    margin-bottom: 5px;
}

.contact-text {
    margin: 0;
    margin-bottom: 10px;
}

.social-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Điều chỉnh responsive cho contact info */
@media (max-width: 1200px) {
    .contact-info {
        bottom: -15vh; /* Điều chỉnh vị trí cho màn hình nhỏ hơn */
        font-size: 14px;
    }

    .contact-container {
        bottom: -20vh; /* Điều chỉnh tương ứng cho màn hình nhỏ hơn */
    }

    .slogan {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .contact-info {
        position: relative;
        bottom: auto;
        margin-top: 20px;
    }
    
    .brand-text-container {
        padding-bottom: 20px;
    }

    .slogan {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .contact-info {
        padding: 10px;
    }

    .slogan {
        font-size: 12px;
    }
    
    .contact-title, .contact-text, .social-contacts {
        font-size: 12px;
    }
}

/* Style cho các icon mạng xã hội */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Icon-specific colors on hover */
.social-icon:hover .fa-facebook-f {
    color: #1877F2;
}

.social-icon:hover .fa-telegram-plane {
    color: #0088cc;
}

.social-icon:hover .fa-comments {
    color: #008fe5; /* Zalo blue */
}

/* Chat Button và Popup */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 24px;
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    background-color: #0056b3;
}

.chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-popup.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: linear-gradient(90deg, #007bff, #0056b3);
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-weight: 500;
    font-size: 18px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f5f5f5;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message.admin {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.message.admin .message-content {
    background-color: #e0e0e0;
    border-bottom-left-radius: 5px;
}

.message.user .message-content {
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 5px;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
}

.message-time {
    display: block;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 5px;
    text-align: right;
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-input {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 8px 15px;
    outline: none;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background-color: #0056b3;
}

@media (max-width: 576px) {
    .chat-popup {
        width: 90%;
        right: 5%;
        left: 5%;
        bottom: 80px;
    }
}

/* Styles cho thông báo lỗi */
.error-message {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 15px;
}

/* Hiệu ứng highlight trường input lỗi */
.input-group.has-error .form-control,
.input-group.has-error .input-group-text {
    border-color: #dc3545;
}

.input-group.has-error .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Animation cho thông báo lỗi */
@keyframes highlightError {
    0% { background-color: rgba(220, 53, 69, 0.1); }
    50% { background-color: rgba(220, 53, 69, 0.2); }
    100% { background-color: transparent; }
}

.has-error {
    animation: highlightError 1s ease;
}
