.page-content {
    width: 100%;
}

.auth-page {
    min-height: 100vh;
    padding: calc(var(--header-offset) + var(--header-height) + 7.1rem) 1.5rem 5.25rem;
    background: #ffffff;
    color: #15120f;
}

.auth-shell {
    width: min(100%, 32.2rem);
    margin: 0 auto;
    display: grid;
    justify-items: center;
}

.auth-shell--login {
    width: min(100%, 21.45rem);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.45rem;
    color: #15120f;
}

.auth-brand img {
    width: 5rem;
    height: auto;
}

.auth-heading {
    margin-bottom: 1.85rem;
    text-align: center;
}

.auth-heading h1 {
    margin: 0;
    color: #15120f;
    font-family: var(--font-family-display);
    font-size: clamp(2.3rem, 3.1vw, 2.95rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: 0;
}

.auth-heading h1 em {
    font-style: italic;
    font-weight: 400;
}

.auth-heading p {
    margin: 0.72rem 0 0;
    color: #a89168;
    font-family: var(--font-family-base);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
}

.auth-form {
    width: 100%;
    display: grid;
    gap: 1.05rem;
}

.auth-form--card {
    padding: 2rem 1.9rem;
    border: 1px solid rgba(21, 18, 15, 0.12);
    border-radius: 0.7rem;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(21, 18, 15, 0.07), 0 1px 2px rgba(21, 18, 15, 0.05);
}

.auth-grid {
    display: grid;
    gap: 1.05rem;
}

.auth-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
    display: grid;
    gap: 0.42rem;
}

.auth-field label {
    color: #15120f;
    font-family: var(--font-family-base);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.15;
}

.auth-field input {
    width: 100%;
    height: 2.45rem;
    border: 0;
    border-radius: 0.42rem;
    background: #f7f5f2;
    color: #15120f;
    padding: 0 0.8rem;
    font-family: var(--font-family-base);
    font-size: 0.82rem;
    font-weight: 500;
    outline: 1px solid rgba(21, 18, 15, 0.14);
    transition: outline-color 0.18s ease, background-color 0.18s ease;
}

.auth-form--card .auth-field input,
.auth-form--card .auth-input-wrap {
    background: #f2f0ec;
    outline: 1px solid rgba(21, 18, 15, 0.1);
}

.auth-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.35rem;
    align-items: center;
    border-radius: 0.42rem;
    background: #f7f5f2;
    outline: 1px solid rgba(21, 18, 15, 0.14);
    transition: outline-color 0.18s ease, background-color 0.18s ease;
}

.auth-input-wrap input {
    background: transparent;
    outline: none;
}

.auth-field input::placeholder {
    color: #a89168;
    opacity: 1;
}

.auth-field input:focus,
.auth-input-wrap:focus-within {
    outline: 1px solid #c8ae7c;
}

.auth-password-toggle {
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    background: transparent;
    color: #a89168;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.auth-password-toggle svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 1.2rem;
    margin-top: -0.02rem;
}

.auth-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.48rem;
    color: #a89168;
    font-family: var(--font-family-base);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
}

.auth-check input {
    width: 0.78rem;
    height: 0.78rem;
    margin: 0.08rem 0 0;
    accent-color: #15120f;
}

.auth-check a,
.auth-text-button,
.auth-switch a {
    color: #c77835;
}

.auth-check--terms {
    margin-top: 0.15rem;
}

.auth-text-button {
    border: 0;
    padding: 0;
    background: transparent;
    font-family: var(--font-family-base);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    min-height: 2.75rem;
    border: 0;
    border-radius: 0.42rem;
    background: #050505;
    color: #ffffff;
    font-family: var(--font-family-base);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    transform: translateY(-1px);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.auth-submit--secondary {
    background: #8b2e12;
}

.auth-forgot-panel {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(139, 46, 18, 0.16);
    border-radius: 0.55rem;
    background: #fbfaf8;
}

.auth-forgot-panel[hidden] {
    display: none;
}

.auth-status {
    width: 100%;
    margin: 0.9rem 0 0;
    color: #8e7350;
    font-family: var(--font-family-base);
    font-size: 0.82rem;
    line-height: 1.42;
    text-align: center;
}

.auth-status[data-state="success"] {
    color: #5f7439;
}

.auth-status[data-state="error"] {
    color: #a84635;
}

.auth-switch {
    margin: 2.1rem 0 0;
    color: #a89168;
    font-family: var(--font-family-base);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

.auth-reset-state {
    width: 100%;
    padding: 1.35rem;
    border: 1px solid rgba(21, 18, 15, 0.12);
    border-radius: 0.7rem;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(21, 18, 15, 0.07), 0 1px 2px rgba(21, 18, 15, 0.05);
    text-align: center;
}

.auth-reset-state h2 {
    margin: 0;
    color: #15120f;
    font-family: var(--font-family-display);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.auth-reset-state p {
    margin: 0.85rem 0 1.1rem;
    color: #8e7350;
    font-family: var(--font-family-base);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.45;
}

.auth-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 720px) {
    .auth-page {
        padding: calc(var(--header-offset) + var(--header-height) + 5.5rem) 1rem 4rem;
    }

    .auth-heading h1 {
        font-size: clamp(2.05rem, 11vw, 2.7rem);
    }

    .auth-form--card {
        padding: 1.25rem;
    }

    .auth-grid--two {
        grid-template-columns: 1fr;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }
}
