.auth-page {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #E7F3FF 0%, #A3BFFA 100%);
    font-family: 'Arial', sans-serif;
}

.auth-container {
    background: linear-gradient(145deg, #FFFFFF 0%, #F7FAFF 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container a {
    display: inline-block;
    text-decoration: none;
}

.logo-container img {
    height: 100px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* Tiêu đề dự phòng */
.auth-title {
    background: linear-gradient(90deg, #8B0000 0%, #FF4500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 25px;
    font-weight: 900;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    background: linear-gradient(90deg, #1877F2 0%, #0A66C2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: bold;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #A3BFFA;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #F7FAFF 0%, #E7F3FF 100%);
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #1877F2;
    box-shadow: 0 0 5px rgba(24, 119, 242, 0.5);
    outline: none;
}

/* Nút kiểm tra mã mời và kiểm tra username */
.check-invite-button,
.check-username-button {
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(90deg, #4CAF50 0%, #388E3C 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.check-invite-button:hover,
.check-username-button:hover {
    background: linear-gradient(90deg, #388E3C 0%, #2E7D32 100%);
    transform: translateY(-2px);
}

/* Thông báo kết quả kiểm tra mã mời */
.invite-message {
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

.invite-message.error-message {
    color: #D32F2F !important;
}

.invite-message.success-message {
    color: #4CAF50 !important;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #1877F2 0%, #0A66C2 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    position: relative;
}

.auth-button:hover {
    background: linear-gradient(90deg, #0A66C2 0%, #004BA0 100%);
    transform: translateY(-2px);
}

.auth-button:disabled {
    background: #b3b3b3;
    cursor: not-allowed;
}

.error-message {
    color: #D32F2F !important;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

.auth-form p {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.auth-form a {
    background: linear-gradient(90deg, #1877F2 0%, #0A66C2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-weight: bold;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password-link {
    margin-right: 10px;
}

/* Modal */
.register-modal,
.forgot-password-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(3px);
}

.register-modal.active,
.forgot-password-modal.active {
    visibility: visible;
    opacity: 1;
}

.register-modal-content,
.forgot-password-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.register-modal.active .register-modal-content,
.forgot-password-modal.active .forgot-password-modal-content {
    transform: scale(1);
}

.register-modal-content h3,
.forgot-password-modal-content h3 {
    margin: 0 0 20px;
    color: #0073aa;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.register-modal-content h3::after,
.forgot-password-modal-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0073aa;
    border-radius: 3px;
}

.register-modal-content p,
.forgot-password-modal-content p {
    margin: 0 0 25px;
    color: #444;
    font-size: 16px;
    line-height: 1.6;
}

/* Highlight important text */
.highlight {
    color: #0073aa;
    font-weight: 600;
}

.highlight-success {
    color: #4CAF50;
    font-weight: 600;
}

.highlight-warning {
    color: #FFB300;
    font-weight: 600;
}

.register-modal-button,
.forgot-close-button {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 115, 170, 0.2);
    letter-spacing: 0.5px;
}

.register-modal-button:disabled {
    background-color: #b3b3b3;
    cursor: not-allowed;
    box-shadow: none;
}

.register-modal-button:hover:not(:disabled),
.forgot-close-button:hover {
    background-color: #005d82;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 115, 170, 0.3);
}

.register-modal-button:active:not(:disabled),
.forgot-close-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.2);
}

/* Success modal styling */
.register-modal-content.success {
    background: linear-gradient(135deg, #f6fbff 0%, #e3f0ff 100%);
    border: 1px solid #a3d0ff;
}

.register-modal-content.success h3 {
    color: #4CAF50;
}

.register-modal-content.success h3::after {
    background-color: #4CAF50;
}

/* Wait for approval message styling */
.approval-wait {
    background-color: #FFF8E1;
    border-left: 4px solid #FFB300;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
}

/* Invite code success styling */
.invite-success {
    background-color: #E8F5E9;
    border-left: 4px solid #4CAF50;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
}

/* Forgot password modal specific styles */
.masked-email {
    font-size: 16px;
    color: #0073aa;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Button spinner for loading state */
.button-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-left: 8px;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Style cho container của dòng liên hệ */
.support-contact-container {
    border-top: 2px solid #1877f2;
    padding-top: 5px;
    margin-top: 15px;
    text-align: center;
}

/* Style cho dòng liên hệ */
.support-contact {
    font-size: 14px;
    color: #606770;
    text-transform: uppercase;
    margin: 0;
}

/* Style cho liên kết số điện thoại */
.support-contact a {
    color: #1877f2;
    text-decoration: none;
}

.support-contact a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .support-contact {
        font-size: 12px;
    }
}