/* ============================================================
   QUÊN MẬT KHẨU — Vercel Monochrome Style
   ============================================================ */

/* --- Auth Page Container --- */
.auth-page-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px - 100px);
    padding: 60px 24px;
    position: relative;
    z-index: 1;
}

/* --- Ẩn hoàn toàn các đốm sáng cực quang nhiều màu --- */
.ambient-orb {
    display: none !important;
}

/* --- Reset Card: Thiết kế phẳng viền mảnh --- */
.reset-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    z-index: 1;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reset-card::before {
    display: none !important; /* Bỏ dải màu trang trí phía trên */
}

.reset-card:hover {
    border-color: var(--border-hover);
}

/* --- Card Header --- */
.header {
    text-align: center;
    margin-bottom: 24px;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--text-primary);
    margin-bottom: 16px;
    transition: opacity 0.2s ease;
}

.logo-area svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-main);
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Form Controls --- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px 12px 40px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrapper input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.8;
}

.input-wrapper input:focus {
    border-color: var(--text-primary);
}

.input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: fill 0.15s ease;
    pointer-events: none;
}

.input-wrapper input:focus + svg {
    fill: var(--text-primary);
}

/* --- Submit Button: Monochrome Tương phản cao --- */
.btn-submit {
    width: 100%;
    background: var(--btn-solid-bg);
    color: var(--btn-solid-text);
    border: 1px solid var(--btn-solid-bg);
    border-radius: var(--radius-md);
    padding: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    letter-spacing: 0.2px;
}

.btn-submit::after {
    display: none !important; /* Loại bỏ hiệu ứng quét sáng lòe loẹt */
}

.btn-submit:hover {
    background: var(--btn-solid-bg-hover);
    color: var(--btn-solid-text-hover);
    border-color: var(--text-primary);
}

.btn-submit:active {
    transform: scale(0.99);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Alert Messages --- */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: rgba(238, 0, 0, 0.05);
    border: 1px solid rgba(238, 0, 0, 0.15);
    color: var(--error);
}

.alert-success {
    background: rgba(0, 112, 243, 0.05);
    border: 1px solid rgba(0, 112, 243, 0.15);
    color: var(--success);
}

/* --- Card Footer Link --- */
.card-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.card-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s ease;
}

.card-footer a:hover {
    opacity: 0.8;
}

/* --- Loading Spinner --- */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(127, 127, 127, 0.25);
    border-top: 2px solid var(--btn-solid-text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- OTP Form & Help Text (Dịch chuyển inline styles sang class) --- */
#resetPasswordForm {
    display: none;
    margin-top: 20px;
}

#otpHelpText {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}



