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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f10;
  --surface: #18181b;
  --border: #2a2a2e;
  --text: #e8e8ea;
  --muted: #71717a;
  --accent: #e8c97e;
  --accent-dim: rgba(232,201,126,0.12);
  --danger: #f87171;
  --radius: 12px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  padding: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
  color: var(--muted);
}

.field { margin-bottom: 0.85rem; }

input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}

input:focus { border-color: var(--accent); }
input::placeholder { color: var(--muted); }

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #0f0f10;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.switch {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.error {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1rem;
  margin: 0.3rem 0;
}

.hidden { display: none !important; }
