/**
 * CandleCraft — login / register / forgot password (body.layout-account-auth).
 * Montserrat + Playfair Display load from fonts.css site-wide.
 */
body.layout-account-auth {
    font-family: Montserrat, system-ui, -apple-system, Segoe UI, sans-serif;
    background-color: #fdf9f6;
    background-image:
        linear-gradient(
            180deg,
            rgba(253, 249, 246, 0.9) 0%,
            rgba(253, 249, 246, 0.94) 45%,
            rgba(253, 249, 246, 0.92) 100%
        ),
        url('../img/account_background.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

body.layout-account-auth .main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: 3rem;
}

body.layout-account-auth .main > .container {
    width: 100%;
    max-width: none;
}

body.layout-account-auth .portal-login-page.account-auth-shell {
    width: 100%;
    max-width: min(480px, 100%);
    margin: 0 auto;
    padding: 0 1rem 1rem;
}

body.layout-account-auth .portal-login-page.account-auth-shell--register {
    max-width: min(540px, 100%);
}

body.layout-account-auth .portal-login-card.account-auth-card {
    position: relative;
    padding: 0;
    overflow: visible;
    border-radius: 28px;
    border: 1px solid rgba(139, 94, 60, 0.18);
    background: #ffffff;
    box-shadow:
        0 28px 60px rgba(61, 42, 34, 0.12),
        0 6px 18px rgba(61, 42, 34, 0.06);
}

body.layout-account-auth .account-auth-avatar {
    width: 92px;
    height: 92px;
    margin: -46px auto 0;
    border-radius: 50%;
    background-color: #faf7f2;
    background-image: url('../img/account_auth_avatar.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid rgba(139, 94, 60, 0.28);
    box-shadow:
        0 12px 28px rgba(74, 55, 40, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.layout-account-auth .account-auth-card-inner {
    padding: 0.35rem 2rem 2.25rem;
}

@media (max-width: 520px) {
    body.layout-account-auth .account-auth-card-inner {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }
}

body.layout-account-auth .account-auth-card-inner h1 {
    margin: 0.35rem 0 0.5rem;
    text-align: center;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    /* Mock: heading ~2.5× field label height */
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #4a3728;
}

body.layout-account-auth .account-auth-flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
}

body.layout-account-auth .account-auth-flourish-line {
    flex: 1;
    max-width: 64px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 94, 60, 0.55),
        transparent
    );
}

body.layout-account-auth .account-auth-flourish-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: rgba(139, 94, 60, 0.85);
}

body.layout-account-auth .account-auth-lead {
    margin: 0 0 1.35rem;
    text-align: center;
    font-family: Montserrat, system-ui, sans-serif;
    /* Mock: small sans subtitle under title */
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: #6b5c52;
}

body.layout-account-auth .account-auth-fields {
    margin: 0;
    padding: 0;
    border: 0;
}

body.layout-account-auth .account-auth-field {
    margin-bottom: 1rem;
}

body.layout-account-auth .account-auth-field:last-of-type {
    margin-bottom: 0;
}

body.layout-account-auth .account-auth-label {
    display: block;
    margin-bottom: 0.45rem;
    font-family: Montserrat, system-ui, sans-serif;
    /* Mock: field labels ~14–16px */
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #4a3728;
}

body.layout-account-auth .account-auth-input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 14px;
    border: 1px solid #e5dcd4;
    background: #ffffff;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

body.layout-account-auth .account-auth-input-row > .account-auth-input-icon {
    order: 1;
}

body.layout-account-auth .account-auth-input-row > .account-auth-input {
    order: 2;
}

body.layout-account-auth .account-auth-input-row > .account-auth-toggle-pw {
    order: 3;
}

body.layout-account-auth .account-auth-input-row > .field-format-warning {
    order: 4;
    flex: 1 0 100%;
    padding-left: calc(20px + 0.5rem);
    margin: 0.15rem 0 0 !important;
}

body.layout-account-auth .account-auth-shell--forgot .account-auth-input-row {
    border-radius: 999px;
}

body.layout-account-auth .account-auth-input-row:focus-within {
    border-color: #c9a889;
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.18);
}

body.layout-account-auth .account-auth-input-row--password {
    padding-right: 0.35rem;
}

body.layout-account-auth .account-auth-input-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #a68b6d;
}

body.layout-account-auth .account-auth-toggle-pw {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #a68b6d;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

body.layout-account-auth .account-auth-toggle-pw:hover,
body.layout-account-auth .account-auth-toggle-pw:focus-visible {
    background: rgba(139, 94, 60, 0.08);
    color: #8b5e3c;
    outline: none;
}

body.layout-account-auth .account-auth-toggle-pw .account-auth-toggle-icon {
    width: 20px;
    height: 20px;
}

body.layout-account-auth .account-auth-input.account-auth-input,
body.layout-account-auth .account-auth-input.account-auth-input:focus,
body.layout-account-auth .account-auth-input.account-auth-input:active {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0.55rem 0.25rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: Montserrat, system-ui, sans-serif;
    /* Mock: in-field text slightly larger than placeholder */
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    color: #4a3728;
}

body.layout-account-auth .account-auth-input::placeholder {
    /* Mock: placeholders ~13–14px, slightly smaller than labels */
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    color: #b0a091;
}

body.layout-account-auth .account-auth-input::-webkit-input-placeholder {
    font-size: 13px;
}

body.layout-account-auth .account-auth-input::-moz-placeholder {
    font-size: 13px;
}

body.layout-account-auth .account-auth-input:-ms-input-placeholder {
    font-size: 13px;
}

body.layout-account-auth .account-auth-field .error-message,
body.layout-account-auth .account-auth-field .invalid-feedback {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b42318;
}

body.layout-account-auth .account-auth-fields .input {
    margin-bottom: 0;
}

body.layout-account-auth .g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1.15rem 0 0.35rem;
}

body.layout-account-auth .portal-login-actions {
    margin-top: 1.35rem;
    text-align: center;
}

body.layout-account-auth .login-btn {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0.95rem 1.35rem;
    border: none;
    border-radius: 999px;
    background-color: #8b5e3c;
    color: #ffffff;
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 700;
    /* Mock: primary CTA sans bold caps */
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(139, 94, 60, 0.28),
        0 2px 6px rgba(61, 42, 34, 0.08);
    transition:
        background 0.15s ease,
        transform 0.12s ease,
        box-shadow 0.15s ease;
}

body.layout-account-auth .login-btn:hover,
body.layout-account-auth .login-btn:focus-visible {
    background-color: #7a5235;
    outline: none;
}

body.layout-account-auth .login-btn:active {
    transform: translateY(1px);
}

body.layout-account-auth .portal-login-links {
    margin-top: 1.15rem;
    padding-top: 0;
    border-top: 0;
    text-align: center;
}

body.layout-account-auth .portal-login-links .home-link {
    display: block;
    width: fit-content;
    margin: 0.45rem auto;
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 600;
    /* Mock: in-card footer links ~14px */
    font-size: 14px;
    line-height: 1.4;
    color: #8b5e3c;
    text-decoration: none;
}

body.layout-account-auth .home-link-muted {
    color: #8a776c;
    font-weight: 500;
    font-size: 14px;
}

body.layout-account-auth .home-link--accent {
    font-weight: 700;
}

body.layout-account-auth .home-link:hover,
body.layout-account-auth .home-link:focus-visible {
    color: #6b3e26;
    text-decoration: underline;
    outline: none;
}

body.layout-account-auth .account-auth-back-login::before {
    content: '\2190\00a0';
}
