/**
 * Auth pages common styles
 * Dùng chung cho: login, forgot-password, ...
 */
:root {
    --auth-accent: #82bd83;
    --auth-accent-hover: #234727;
    --auth-dark: #0c0a09;
    --auth-dark-soft: #1c1917;
    --auth-text: #292524;
    --auth-text-muted: #78716c;
}

.auth-page * {
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Font Awesome icons - giữ font gốc để hiển thị icon (tránh bị .auth-page * ghi đè) */
.auth-page .fa {
    font-family: 'FontAwesome' !important;
}

.auth-page,
.auth-page html,
.auth-page body {
    height: 100%;
    margin: 0;
}

.auth-page body {
    background: var(--auth-dark);
    overflow-x: hidden;
}

.auth-page .auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-page .auth-visual {
    flex: 1;
    min-height: 100vh;
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 30%, #0c0a09 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-page .auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 120%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.auth-page .auth-visual .grid-bg {
    position: absolute;
    inset: 0;
    /* background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px; */
    background-image: url('/asset_client/images/bg-1.jpg');
    background-size: cover;
    background-position: center;
}

.auth-page .auth-visual .content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.auth-page .auth-visual img {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.3));
    margin-bottom: 1.5rem;
}

.auth-page .auth-visual h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-page .auth-visual p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.auth-page .auth-form-panel {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: #fafaf9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 3rem;
}

.auth-page .auth-form-panel .logo-mobile {
    display: none;
}

.auth-page .form-header {
    margin-bottom: 2rem;
}

.auth-page .form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 0.25rem;
}

.auth-page .form-header p {
    color: var(--auth-text-muted);
    font-size: 0.9rem;
}

.auth-page .form-floating-custom {
    position: relative;
    margin-bottom: 1rem;
}

.auth-page .form-floating-custom input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1.5px solid #e7e5e4;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-page .form-floating-custom input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.auth-page .form-floating-custom .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--auth-text-muted);
    pointer-events: none;
}

.auth-page .form-floating-custom .input-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-page .form-floating-custom .toggle-pw {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.auth-page .form-floating-custom .toggle-pw:hover {
    color: var(--auth-text);
}

.auth-page .form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.auth-page .form-check-label {
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    cursor: pointer;
}

.auth-page .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

.auth-page .auth-link {
    font-size: 0.875rem;
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-page .auth-link:hover {
    color: var(--auth-accent-hover);
}

.auth-page .btn-auth-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-hover) 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.auth-page .btn-auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: #fff;
}

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

.auth-page .btn-auth-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-page .alert-auth {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: none;
    font-size: 0.9rem;
}

.auth-page .alert-auth-info { background: #fef3c7; color: #92400e; }
.auth-page .alert-auth-danger { background: #fee2e2; color: #991b1b; }
.auth-page .alert-auth-success { background: #d1fae5; color: #065f46; }
.auth-page .alert-auth-danger ul,
.auth-page .alert-auth-success ul { margin: 0; padding-left: 1.25rem; }

.auth-page .auth-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-page .auth-back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-page .auth-back-link .auth-link {
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .auth-page .auth-layout { flex-direction: column; }
    .auth-page .auth-visual {
        min-height: 200px;
        padding: 2rem 1rem;
    }
    .auth-page .auth-visual .content { max-width: 100%; }
    .auth-page .auth-visual img { width: 100px; }
    .auth-page .auth-visual h1 { font-size: 1.25rem; }
    .auth-page .auth-visual p { display: none; }
    .auth-page .auth-form-panel {
        max-width: 100%;
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    .auth-page .auth-form-panel .logo-mobile {
        display: block;
        width: 80px;
        margin-bottom: 1.5rem;
    }
}
