@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300..700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    /* Primary - Warm Amber/Gold */
    --primary-color: hsl(36, 77%, 49%);
    --primary-hover: hsl(36, 77%, 42%);
    --primary-light: hsl(36, 77%, 49%, 0.1);
    --primary-soft: hsl(36, 77%, 49%, 0.05);

    /* Backgrounds */
    --background-color: hsl(30, 6%, 97%);
    --bg-body: hsl(30, 6%, 97%);
    --surface-color: #ffffff;

    /* Text */
    --text-color: hsl(20, 15%, 15%);
    --text-muted: hsl(20, 5%, 45%);
    --text-light: hsl(20, 5%, 60%);

    /* Borders & Effects */
    --border-color: hsl(30, 6%, 88%);
    --border-strong: hsl(30, 6%, 82%);
    --danger-color: hsl(0, 84%, 60%);
    --success-color: hsl(160, 84%, 39%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* Utilities */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px hsl(36, 77%, 49%, 0.3);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px hsl(36, 77%, 49%, 0.35); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Cards */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    transition: all 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-color);
}
.form-control, .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--surface-color);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    color: var(--text-color);
}
.form-control:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px hsl(36, 77%, 49%, 0.1);
}
.form-control::placeholder, .form-input::placeholder { color: var(--text-light); }

/* Animations */
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slide-up 0.5s ease-out forwards; }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
}

/* Unified auth polish */
:root {
    --background: var(--background-color);
    --foreground: var(--text-color);
    --card-border: var(--border-color);
    --primary: var(--primary-color);
    --primary-foreground: #ffffff;
    --muted-foreground: var(--text-muted);
    --input: var(--border-strong);
    --ring: var(--primary-color);
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

body.auth-page {
    min-height: 100vh;
    background: var(--background-color);
}

.auth-page .wrapper {
    padding: 2rem 1.25rem;
}

.auth-page .auth-card {
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.4rem, 4vw, 2rem);
}

.auth-page .form-input {
    min-height: 2.65rem;
    border-color: var(--border-color);
    background: #fff;
}

.auth-page .btn {
    min-height: 2.7rem;
    font-weight: 700;
    box-shadow: 0 8px 18px hsla(36, 77%, 49%, 0.18);
}

.auth-page .back-link {
    font-weight: 600;
}

@media (max-width: 560px) {
    .auth-page .auth-card {
        padding: 1.25rem;
    }
}
