/* ============ GiftTo — Giao diện Trang Xác thực (Đăng nhập / Đăng ký) ============ */

body.auth-page {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Ẩn Header & Footer mặc định của website */
body.auth-page .site-header,
body.auth-page .site-footer {
    display: none !important;
}

/* Container chính chia 2 cột */
.auth-page-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

/* ======================================================== CỘT TRÁI (SIDEBAR) */
.auth-sidebar {
    width: 55%;
    background: linear-gradient(135deg, #2a1145 0%, #7c4ddb 60%, #d9508a 100%);
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Thêm hiệu ứng hạt tròn mờ ảo làm nền (decor) */
.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 84, 128, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 77, 219, 0.12) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.auth-sidebar-inner {
    max-width: 500px;
    margin: 0 auto;
    z-index: 2;
}

.auth-sidebar .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    text-decoration: none !important;
}

.auth-sidebar .auth-brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ef5f86, #7c4ddb);
    color: #ffffff;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(232, 84, 128, 0.35);
}

.auth-sidebar .auth-brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.auth-hero-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.auth-hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    line-height: 1.5;
}

/* Các thẻ tính năng dạng glassmorphism */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.auth-feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #ffffff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.auth-feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.auth-feature-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.auth-feature-content h3 {
    margin: 0 0 3px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.auth-feature-content p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.35;
}

/* ======================================================== CỘT PHẢI (FORM BOX) */
.auth-form-column {
    width: 45%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    overflow-y: auto;
}

.auth-form-box {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

/* Header thương hiệu dùng trên thiết bị di động (khi ẩn cột sidebar trái) */
.auth-mobile-header {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    text-decoration: none !important;
}

.auth-mobile-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ef5f86, #7c4ddb);
    color: #ffffff;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(232, 84, 128, 0.25);
}

.auth-mobile-name {
    font-size: 1.25rem;
    font-weight: 950;
    color: #241a33;
    letter-spacing: -0.02em;
}

/* Pill Tabs điều hướng */
.auth-tabs {
    display: flex;
    background: #f2ebfd;
    padding: 6px;
    border-radius: 999px;
    margin: 0 auto 36px;
    width: fit-content;
}

.auth-tab-btn {
    padding: 10px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #7a7090;
    border-radius: 999px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.auth-tab-btn:hover {
    color: #241a33;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, #ef5f86, #c33f74);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(232, 84, 128, 0.3);
}

/* Tiêu đề của Form */
.auth-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #241a33;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-form-desc {
    font-size: 0.95rem;
    color: #7a7090;
    margin-bottom: 28px;
    line-height: 1.45;
}

/* Các trường input có icon lồng bên trong */
.auth-field {
    margin-bottom: 20px;
}

.auth-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.auth-field label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: #241a33;
    margin: 0;
}

.auth-forgot-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ef5f86;
    text-decoration: none !important;
}

.auth-forgot-link:hover {
    text-decoration: underline !important;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #a49bb8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input-wrapper .input {
    padding-left: 48px;
    padding-right: 16px;
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid #ece3f8;
    background: #faf7fd;
    font-size: 0.95rem;
    font-weight: 500;
    color: #241a33;
    transition: all 0.25s ease;
    width: 100%;
}

.auth-input-wrapper .input::placeholder {
    color: #a49bb8;
}

.auth-input-wrapper .input:focus {
    border-color: #7c4ddb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 77, 219, 0.15);
    outline: 0;
}

/* Trạng thái lỗi của ô nhập liệu */
.auth-input-wrapper .input.input-error {
    border-color: var(--danger, #ef4444);
    background-color: #fef2f2;
}

.auth-input-wrapper .input.input-error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.auth-password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #a49bb8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.auth-password-toggle:hover {
    color: #7c4ddb;
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Nút Submit */
.auth-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ef5f86 0%, #c33f74 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(232, 84, 128, 0.35);
    transition: all 0.25s ease;
    margin-top: 12px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(232, 84, 128, 0.45);
}

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

.auth-submit-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.auth-submit-btn:hover svg {
    transform: translateX(4px);
}

/* Link chân trang Form */
.auth-form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: #7a7090;
}

.auth-form-footer a {
    font-weight: 700;
    color: #ef5f86;
    text-decoration: none !important;
}

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

/* ======================================================== RESPONSIVE LAYOUT */
@media (max-width: 991px) {
    .auth-page-container {
        flex-direction: column;
    }
    
    .auth-sidebar {
        display: none !important;
    }
    
    .auth-form-column {
        width: 100%;
        padding: 48px 24px;
        min-height: 100vh;
    }
    
    .auth-mobile-header {
        display: flex;
    }
}
