:root {
    --page-bg: #f4efe6;
    --panel-bg: rgba(255, 252, 247, 0.88);
    --panel-border: rgba(61, 87, 74, 0.14);
    --text-main: #1f2a24;
    --text-muted: #526158;
    --accent: #295f4e;
    --accent-strong: #1e473a;
    --accent-soft: #dce8df;
    --shadow-soft: 0 24px 60px rgba(31, 42, 36, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(215, 173, 92, 0.28), transparent 30%),
        radial-gradient(circle at bottom right, rgba(41, 95, 78, 0.24), transparent 32%),
        var(--page-bg);
    color: var(--text-main);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.flash {
    width: min(720px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(41, 95, 78, 0.18);
    border-radius: 14px;
    background: rgba(255, 252, 247, 0.92);
    box-shadow: 0 10px 25px rgba(31, 42, 36, 0.08);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    background: var(--panel-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.auth-card__content {
    padding: clamp(2rem, 4vw, 4rem);
}

.auth-locale-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-locale-form__label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-locale-form__select {
    min-width: 10rem;
    border: 1px solid rgba(41, 95, 78, 0.14);
    border-radius: 999px;
    padding: 0.65rem 2.2rem 0.65rem 0.95rem;
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent-strong);
    font: inherit;
}

.auth-locale-form__select:focus-visible {
    outline: 3px solid rgba(215, 173, 92, 0.55);
    outline-offset: 3px;
}

.auth-card__eyebrow {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-card h1,
.auth-card h2 {
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.auth-card h1 {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 0.98;
}

.auth-card__lead {
    max-width: 36rem;
    margin: 1.5rem 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
}

.auth-card__meta span {
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(41, 95, 78, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-card__actions {
    margin-top: 2rem;
}

.auth-card__button {
    border: 0;
    border-radius: 16px;
    padding: 1rem 1.4rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(41, 95, 78, 0.28);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.auth-card__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(41, 95, 78, 0.34);
}

.auth-card__button:focus-visible {
    outline: 3px solid rgba(215, 173, 92, 0.55);
    outline-offset: 3px;
}

.auth-card__aside {
    padding: clamp(2rem, 3vw, 3rem);
    background: linear-gradient(180deg, rgba(41, 95, 78, 0.1), rgba(41, 95, 78, 0.03));
    border-left: 1px solid rgba(41, 95, 78, 0.1);
}

.auth-card__aside h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
}

.auth-card__aside ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.auth-card__aside li + li {
    margin-top: 0.85rem;
}

.profile-page {
    min-height: 100vh;
    padding: 2rem;
}

.profile-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    background: var(--panel-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.profile-hero__content,
.profile-hero__aside {
    padding: clamp(2rem, 4vw, 3.5rem);
}

.profile-hero__content {
    padding-left: clamp(2.5rem, 5vw, 4.5rem);
}

.profile-hero__eyebrow {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profile-hero h1,
.profile-hero h2,
.profile-data__header h2 {
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.profile-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3.3vw, 3.35rem);
    line-height: 1;
}

.profile-hero__lead,
.profile-data__header p,
.profile-hero__aside ul {
    color: var(--text-muted);
}

.profile-hero__lead {
    max-width: 42rem;
    margin: 1.25rem 0 0;
    font-size: 1.04rem;
    line-height: 1.75;
}

.profile-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
}

.profile-hero__meta span {
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(41, 95, 78, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 600;
}

.profile-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 0.95rem 1.35rem;
    text-decoration: none;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.profile-button:hover {
    transform: translateY(-1px);
}

.profile-button--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: 0 14px 30px rgba(41, 95, 78, 0.28);
}

.profile-button--ghost {
    border: 1px solid rgba(41, 95, 78, 0.14);
    background: rgba(255, 255, 255, 0.65);
    color: var(--accent-strong);
}

.profile-hero__aside {
    background: linear-gradient(180deg, rgba(41, 95, 78, 0.1), rgba(41, 95, 78, 0.03));
    border-left: 1px solid rgba(41, 95, 78, 0.1);
}

.profile-hero__aside h2,
.profile-data__header h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
}

.profile-hero__aside ul {
    margin: 0;
    padding-left: 1.15rem;
    line-height: 1.7;
}

.profile-data {
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.92);
    box-shadow: 0 18px 42px rgba(31, 42, 36, 0.08);
}

.profile-data {
    padding-left: clamp(2rem, 4vw, 3rem);
}

.profile-data__header p {
    margin: 0;
    line-height: 1.7;
}

.profile-data__dump {
    overflow: auto;
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    border-radius: 20px;
    background: #1f2a24;
    color: #eef2ec;
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (max-width: 820px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-locale-form {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

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

    .profile-page {
        padding: 1rem;
    }

    .profile-hero {
        grid-template-columns: 1fr;
    }

    .auth-card__aside {
        border-left: 0;
        border-top: 1px solid rgba(41, 95, 78, 0.1);
    }

    .profile-hero__aside {
        border-left: 0;
        border-top: 1px solid rgba(41, 95, 78, 0.1);
    }
}
