/* ============================================
   AUTH PAGES (LOGIN/REGISTER)
   ============================================ */

/* Auth Wrapper */
.auth-wrapper {
    display: flex;
    justify-content: center;
    background: transparent;
    padding: 40px 20px;
    position: relative;
    padding-bottom: 72px;
}

.auth-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 200px, rgba(255, 255, 255, 0.1) 100%);
}

.auth-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: url('/web/img/bg-shape-dark.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

/* Auth Container */
.auth-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 25px rgb(2 22 42 / 8%);
    width: 450px;
    min-height: fit-content;
    z-index: 1;
    transform: none;
}

.auth-container-small {
    width: 450px;
}

.auth-container-medium {
    width: 500px;
}

.auth-container-large {
    width: 700px;
}

/* Social Login Buttons */
.auth-social-login .btn-outline,
.auth-social-login .ce-btn-outline {
    background: var(--white);
}

/* Social Login Button - Google */
.social-login .btn-outline:first-child:hover,
.social-login .ce-btn-outline:first-child:hover {
    background-color: rgba(219, 68, 55, 0.1) !important;
    border-color: #db4437 !important;
}

/* Social Login Button - Facebook */
.social-login .btn-outline:last-child:hover,
.social-login .ce-btn-outline:last-child:hover {
    background-color: rgba(66, 103, 178, 0.1) !important;
    border-color: #4267B2 !important;
}

/* Auth Heading */
.auth-container h2 {
    /*margin-bottom: 30px;*/
    color: var(--primary-color);
    text-align: center;
}

/* Auth Divider with Line */
.auth-divider {
    margin-bottom: 20px;
    position: relative;
    text-align: center;
    margin: 16px 0px;
    z-index: -1;
}

.auth-divider span {
    padding: 0 10px;
    color: #999;
    position: relative;
    z-index: 1;
    background-color: white;
}

.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 0;
}

/* Social Login Container */
.social-login {
    margin-bottom: 20px;
}

/* Auth Form Actions */
.auth-form-actions {
    margin-bottom: 20px;
}

/* Auth Links */
.auth-link {
    color: var(--primary-color-text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-link-secondary {
    color: #e28e0f;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-link-secondary:hover {
    text-decoration: underline;
}

/* Auth Container Links (descendant selector) */
.auth-container a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-container a:hover {
    text-decoration: underline;
}

/* Auth Text */
.auth-text {
    font-size: 15px;
    text-align: center;
}

/*CSS bổ sung thêm*/
.page-header.hd-auth-page {
    padding-top: 24px;
    padding-bottom: 0;
}

.forgot-password-page .auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forgot-password-page .auth-form .form-group,
.forgot-password-page .auth-form .auth-text {
    margin: 0;
}

.forgot-password-page .forgot-password-otp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forgot-password-page .forgot-password-otp-form > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.forgot-password-page .forgot-password-otp-center {
    width: 100%;
}

.forgot-password-page .forgot-password-otp-center .otp-inputs {
    justify-content: center;
}

.forgot-password-page .forgot-step-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.forgot-password-page .forgot-password-otp-form .auth-text {
    margin: 0 !important;
    text-align: center;
}

.common-otp-input__resend {
    width: auto;
    min-width: 0;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f7941d;
    cursor: pointer;
    text-decoration: none;
}

.common-otp-input__resend:hover:not(:disabled) {
    background: transparent;
    color: #dc7b08;
    text-decoration: underline;
}

.common-otp-input__resend:disabled {
    border: 0;
    background: transparent;
    color: #a6a6a6;
    cursor: not-allowed;
}
/* Note: bg-header-hero.hero-auth-page style moved to other.css */


/* responsive*/
@media (max-width: 575px) {
    .auth-wrapper {
        padding-top: 20px;
    }

    .auth-container {
        padding: 24px;
    }
}


/* ============================================
   END AUTH PAGES
   ============================================ */