/* ====================================================================
   AUTH STYLES - LOGIN & REGISTER (MODULAR CSS)
   Đề tài: Dashboard Quản lý và Tối ưu chi phí Cloud cơ bản
   Phong cách: Modern SaaS Split-Screen, Glassmorphism, Clean, Professional
   ==================================================================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    width: 100vw;
    background-color: var(--bg-body);
}

/* --- CỘT TRÁI: BANNER GIỚI THIỆU FINOPS --- */
.auth-hero-side {
    flex: 1.1;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 60%, #1e3a8a 100%);
    color: #ffffff;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-hero-side::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
}

.auth-hero-header {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.auth-hero-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.auth-hero-title h2 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.auth-hero-title span {
    font-size: 12px;
    color: #38bdf8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.auth-hero-content {
    z-index: 10;
    max-width: 520px;
    margin: auto 0;
}

.auth-hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.auth-hero-content p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 28px;
}

.auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 500;
}

.auth-feature-item i {
    width: 28px;
    height: 28px;
    background-color: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.auth-hero-footer {
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 12px;
    color: #64748b;
}

/* --- CỘT PHẢI: FORM ĐĂNG NHẬP / ĐĂNG KÝ --- */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background-color: var(--bg-card);
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-form-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-input-group {
    position: relative;
    margin-bottom: 18px;
}

.auth-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper i.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.auth-input-wrapper input,
.auth-input-wrapper select {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-body);
    font-size: 13px;
    color: var(--text-main);
    transition: var(--transition);
}

.auth-input-wrapper input:focus,
.auth-input-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.password-toggle-btn:hover {
    color: var(--text-main);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-auth-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Nút nạp nhanh tài khoản Demo */
.demo-accounts-box {
    margin-top: 24px;
    padding: 16px;
    background-color: #f8fafc;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-md);
}

.demo-accounts-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.demo-buttons-group {
    display: flex;
    gap: 10px;
}

.btn-quick-fill {
    flex: 1;
    padding: 7px 10px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-quick-fill:hover {
    background-color: var(--primary-light);
    border-color: #bfdbfe;
    color: var(--primary);
}

.auth-switch-link {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-switch-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

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

/* Responsive cho màn hình nhỏ */
@media (max-width: 900px) {
    .auth-hero-side {
        display: none;
    }
    .auth-form-side {
        padding: 24px;
    }
}
