:root {
    --bg-1: #f4efe6;
    --bg-2: #efe6d9;
    --card: #fffdfa;
    --text: #1f1e1b;
    --muted: #615f5a;
    --accent: #1f7a63;
    --accent-2: #d48438;
    --ok: #2f9e44;
    --radius: 20px;
    --shadow: 0 16px 50px rgba(65, 38, 12, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% 10%, #fff6e8 0%, transparent 35%),
                radial-gradient(circle at 80% 80%, #ffe8d2 0%, transparent 28%),
                linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.bg-shape {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
    opacity: 0.45;
}

.bg-shape-1 {
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, #ffc987, #f1a349);
    top: -100px;
    right: -100px;
}

.bg-shape-2 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #8ad7c3, #3c9f87);
    bottom: -80px;
    left: -80px;
}

.dashboard {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 36px;
}

.dashboard-header {
    animation: rise-in 520ms ease-out both;
}

.eyebrow {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.78rem;
}

h1 {
    margin: 8px 0 6px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.1;
}

.subtitle {
    margin: 0;
    color: var(--muted);
}

.meta {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #44413c;
}

.cards {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: rise-in 600ms ease-out both;
}

.card:nth-child(2) {
    animation-delay: 120ms;
}

.card:nth-child(3) {
    animation-delay: 240ms;
}

.card h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
}

.range,
.target,
.percent {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.amount {
    margin: 12px 0 0;
    font-weight: 800;
    font-size: 1.8rem;
    color: #171512;
}

.progress-track {
    margin-top: 14px;
    width: 100%;
    height: 11px;
    border-radius: 999px;
    background: #ece4d7;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 420ms ease;
}

.card.complete .progress-fill {
    background: linear-gradient(90deg, #1f8f50, #74c66a);
}

.footer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #3f3b35;
    font-size: 0.9rem;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .amount {
        font-size: 1.6rem;
    }

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

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-card h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.7rem;
}

.auth-sub {
    margin: 10px 0 16px;
    color: var(--muted);
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    font-weight: 700;
    font-size: 0.92rem;
}

.auth-form input {
    border: 1px solid #dacdb9;
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}

.auth-form button {
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    cursor: pointer;
}

.auth-links {
    margin: 14px 0 0;
    font-size: 0.92rem;
    color: #4f4b44;
}

.auth-links a,
.meta a {
    color: #1b6e59;
    font-weight: 700;
    text-decoration: none;
}

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

.auth-error,
.auth-success {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
}

.auth-error {
    background: #ffe7e7;
    color: #892727;
    border: 1px solid #ffc6c6;
}

.auth-success {
    background: #e9faef;
    color: #256c3a;
    border: 1px solid #c7f0d5;
}
