:root {
    --ink: #251f1b;
    --muted: #71665d;
    --paper: #fffaf2;
    --paper-strong: #ffffff;
    --line: rgba(69, 52, 35, 0.14);
    --brand: #8b5e34;
    --brand-dark: #63401f;
    --rose: #b65f78;
    --rose-soft: #ffe4ec;
    --shadow: 0 24px 70px rgba(53, 37, 22, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 233, 198, 0.9), transparent 32rem),
        linear-gradient(135deg, #fffaf2 0%, #f1e7d8 100%);
}

a {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-shell {
    display: grid;
    place-items: center;
    padding: 2rem;
}

.auth-card,
.hero-card,
.dashboard-card,
.love-note {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-card {
    width: min(100%, 440px);
    padding: 2.5rem;
    border-radius: var(--radius);
}

.auth-kicker,
.eyebrow,
.love-kicker {
    margin: 0 0 0.7rem;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

.auth-card h1,
.hero-card h1,
.love-note h1 {
    margin-bottom: 0.7rem;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.auth-card h1 {
    font-size: clamp(2rem, 8vw, 3rem);
}

.auth-subtitle,
.hero-copy,
.love-subline {
    color: var(--muted);
    line-height: 1.6;
}

.form-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.6rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label {
    color: #4f453d;
    font-size: 0.92rem;
    font-weight: 750;
}

.field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    color: var(--ink);
    font: inherit;
    background: rgba(255, 250, 242, 0.9);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus {
    border-color: rgba(139, 94, 52, 0.65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 94, 52, 0.14);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 12px 28px rgba(99, 64, 31, 0.22);
}

.button-secondary {
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.form-switch {
    margin: 1.5rem 0 0;
    color: var(--muted);
    text-align: center;
}

.alert {
    margin: 1rem 0;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-weight: 700;
}

.alert-error {
    color: #7a1f1f;
    background: #fff0f0;
    border: 1px solid rgba(122, 31, 31, 0.16);
}

.home-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0;
}

.hero-card {
    border-radius: calc(var(--radius) + 10px);
    padding: clamp(2rem, 6vw, 4rem);
}

.hero-copy {
    max-width: 38rem;
    font-size: 1.15rem;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-card {
    border-radius: 24px;
    padding: 1.4rem;
}

.card-number {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.dashboard-card h2 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.dashboard-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.belle-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 2rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 197, 211, 0.95), transparent 26rem),
        radial-gradient(circle at 80% 85%, rgba(255, 226, 184, 0.92), transparent 28rem),
        linear-gradient(135deg, #fff6f8 0%, #f7dce6 48%, #fff0dd 100%);
}

.love-note {
    position: relative;
    width: min(100%, 720px);
    border-color: rgba(182, 95, 120, 0.18);
    border-radius: 42px;
    padding: clamp(2rem, 8vw, 5rem);
    text-align: center;
}

.love-note::before,
.love-note::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    filter: blur(1px);
}

.love-note::before {
    width: 9rem;
    height: 9rem;
    top: -3rem;
    right: -2rem;
}

.love-note::after {
    width: 6rem;
    height: 6rem;
    left: -2rem;
    bottom: -2rem;
}

.love-kicker {
    color: var(--rose);
}

.love-line {
    margin-bottom: 0.6rem;
    color: #5f2636;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 4vw, 2.5rem);
    line-height: 1.25;
}

.heart {
    width: 2.4rem;
    height: 2.4rem;
    margin: 2rem auto 0;
    background: var(--rose);
    transform: rotate(45deg);
    box-shadow: 0 14px 34px rgba(182, 95, 120, 0.28);
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--rose);
}

.heart::before {
    left: -1.2rem;
}

.heart::after {
    top: -1.2rem;
}

@media (max-width: 720px) {
    .auth-card,
    .hero-card,
    .love-note {
        padding: 1.6rem;
        border-radius: 24px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
