:root {
    --auth-bg: var(--color-sand, #fffdf7);
    --auth-surface: var(--color-petal, #fff8ee);
    --auth-outline: rgba(244, 58, 9, 0.16);
    --auth-primary: var(--color-navy, #f43a09);
    --auth-primary-dark: #c72d08;
    --auth-accent: var(--color-gold, #ffb766);
    --auth-text: var(--color-ink, #7b240b);
    --auth-muted: var(--color-slate, #6f5a45);
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', 'Figtree', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(244, 58, 9, 0.08), transparent 58%),
        radial-gradient(circle at 82% 8%, rgba(255, 183, 102, 0.18), transparent 60%),
        var(--auth-bg);
    color: var(--auth-text);
}

.page-shell--auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 8vw, 120px) 16px;
}

.auth-page__inner {
    width: min(1120px, 100%);
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(420px, 92vw);
    background: var(--auth-surface);
    border-radius: 26px;
    border: 1px solid var(--auth-outline);
    box-shadow: var(--shadow-subtle, 0 22px 46px rgba(244, 58, 9, 0.18));
    backdrop-filter: blur(14px);
}

.auth-card__body {
    padding: clamp(34px, 6vw, 58px);
}

.auth-card__body-inner {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 4vw, 28px);
}

.auth-card__body-inner--compact header {
    text-align: center;
    margin-bottom: 12px;
}

.auth-card__body-inner--compact .auth-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4vw, 36px);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #0f172a;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.22em;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.45);
}

.auth-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.35;
}

.auth-heading {
    margin: 0;
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 600;
    color: var(--auth-text);
}

.auth-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--auth-muted);
}

.auth-alert {
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-alert--success {
    background: rgba(104, 211, 136, 0.16);
    color: #2f4034;
    border: 1px solid rgba(104, 211, 136, 0.32);
}

.auth-alert--error {
    background: rgba(185, 28, 28, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.32);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-form--minimal {
    gap: 20px;
}

.auth-form--minimal .auth-form__options {
    justify-content: space-between;
}

.auth-form--minimal .auth-checkbox span {
    font-size: 13px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-field__label {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(123, 36, 11, 0.62);
}

.auth-field__input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(123, 36, 11, 0.12);
    background: rgba(255, 248, 238, 0.92);
    font-size: 15px;
    color: var(--auth-text);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-field__input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(244, 58, 9, 0.18);
}

.auth-field__input.is-invalid {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18);
}

.auth-field__error {
    font-size: 13px;
    color: #b91c1c;
}

.auth-form__options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(123, 36, 11, 0.7);
}

.auth-checkbox input[type='checkbox'] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(123, 36, 11, 0.28);
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.auth-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-link::after {
    content: '\2192';
    font-size: 16px;
    transition: transform 0.2s ease;
}

.auth-link:hover {
    color: #0b5d58;
}

.auth-link:hover::after {
    transform: translateX(2px);
}

.auth-link--button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.btn-outline.is-current {
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.4);
    color: var(--auth-primary);
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    color: var(--color-white, #ffffff);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 20px 36px rgba(244, 58, 9, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 48px rgba(244, 58, 9, 0.3);
    filter: brightness(1.02);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 16px 28px rgba(244, 58, 9, 0.26);
}

.auth-button--auto {
    width: auto;
    min-width: 0;
    padding-inline: 24px;
}

.auth-meta {
    font-size: 13px;
    color: rgba(123, 36, 11, 0.55);
    line-height: 1.6;
}

.auth-meta a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-actions__inline {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}
