/* Auth pages — login, register, forgot-password, reset-password.
 *
 * Layout: a single, centered column inside `page-content`, capped at
 * 540px wide so the form feels like a focused "modal-like" surface.
 * Background is the storefront cream (#faf8f5) to blend in with the
 * rest of the customer-facing site.
 *
 * The form styling borrows from the original Shopify customer login
 * page (`input-full`, `btn--full`) so behaviour matches expectations
 * for visitors familiar with the upstream site.
 *
 * Font stack notes:
 *   - For English (html[lang="en"]) we keep the original "Tenor Sans"
 *     stack — it's an all-caps display sans that matches the upstream
 *     Shopify theme.
 *   - For Vietnamese (html[lang="vi"]) we want Trirong in the stack
 *     so the title's diacritics render in the brand serif rather than
 *     a substituted system glyph. The lang-scoped override in
 *     `theme-setup.blade.php` adds `!important` on the family, so even
 *     when this declaration is "won", the VI locale still gets
 *     Trirong first.
 */

/* Page-level reset so the form stretches full-width instead of
 * being pinned to the storefront's 1400px `page-width` container. */
.auth-page {
    width: 100%;
    background: #faf8f5;
    padding: 60px 24px 80px;
    min-height: calc(100vh - 300px);
}

.auth-page__inner {
    max-width: 540px;
    margin: 0 auto;
}

.auth-page__header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-page__title {
    font-family: "Tenor Sans", "Trirong", serif;
    font-size: 36px;
    font-weight: 400;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-page__intro {
    font-family: "Trirong", serif;
    font-size: 14px;
    color: #777;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

.auth-page__flash {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid;
    font-family: "Trirong", serif;
    font-size: 14px;
    line-height: 1.5;
}

.auth-page__flash ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.auth-page__flash--error {
    background: #fbeaea;
    border-color: #c62828;
    color: #c62828;
}

.auth-page__flash--info {
    background: #e9f5ec;
    border-color: #2e7d32;
    color: #2e7d32;
}

/* --- Form structure --- */
.auth-form {
    background: #fff;
    padding: 32px;
    border: 1px solid #e8e6e1;
}

.auth-form__row {
    margin-bottom: 18px;
}

.auth-form__row--remember {
    margin-bottom: 24px;
}

.auth-form__label-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: baseline;
    margin-bottom: 6px;
    gap: 12px;
}

.auth-form__label-row-col--right {
    text-align: right;
}

.auth-form__label {
    display: block;
    font-family: "Trirong", serif;
    font-size: 13px;
    font-weight: 600;
    color: #1c1d1d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d6d2cb;
    background: #fff;
    font-family: "Trirong", serif;
    font-size: 15px;
    color: #1c1d1d;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.auth-form__input:focus {
    outline: none;
    border-color: #1c1d1d;
}

.auth-form__input.is-invalid,
.auth-form__input:has(+ .auth-form__error) {
    border-color: #c62828;
}

.auth-form__error {
    display: block;
    margin-top: 4px;
    font-family: "Trirong", serif;
    font-size: 12px;
    color: #c62828;
}

.auth-form__hint {
    font-family: "Trirong", serif;
    font-size: 12px;
    color: #777;
}

.auth-form__hint a {
    color: #1c1d1d;
    text-decoration: underline;
}

.auth-form__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Trirong", serif;
    font-size: 13px;
    color: #1c1d1d;
    cursor: pointer;
}

.auth-form__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-form__alt {
    margin-top: 20px;
    text-align: center;
    font-family: "Trirong", serif;
    font-size: 13px;
}

.auth-form__alt a {
    color: #1c1d1d;
    text-decoration: underline;
}

.auth-form .btn--full {
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-family: "Trirong", serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4.2px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.auth-form .btn--full:hover {
    opacity: 0.85;
}

@media (max-width: 749px) {
    .auth-page {
        padding: 32px 16px 60px;
    }

    .auth-page__title {
        font-size: 28px;
    }

    .auth-form {
        padding: 24px 20px;
    }
}
