:root {
  --dark:    #2a2a2a;
  --bg:      #f3efe8;
  --surface: #ffffff;
  --gold:    #906e4e;
  --gold-lt: #906e4e;
  --cream:   #2a2a2a;
  --white:   #2a2a2a;
  --text-mid: rgba(42, 42, 42, 0.6);
  --font-d: 'Oswald', system-ui, sans-serif;
  --font-b: 'Montserrat', system-ui, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font: inherit; border: none; background: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

body {
  font-family: var(--font-b);
  color: var(--cream);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(144, 110, 78, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(144, 110, 78, 0.08), transparent 55%),
    var(--bg);
}

.login-wrap { width: 100%; max-width: 420px; }

.login-card {
  background: var(--surface);
  border: 1px solid rgba(144, 110, 78, 0.28);
  border-radius: var(--radius);
  padding: clamp(28px, 6vw, 44px) clamp(22px, 5vw, 38px);
  box-shadow: 0 24px 60px rgba(42, 42, 42, 0.12);
}

.login-logo {
  color: var(--gold);
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.login-logo img { width: 250px; height: auto; }

.login-title {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  letter-spacing: 1px;
  text-align: center;
  color: var(--white);
}
.login-sub {
  text-align: center;
  color: var(--text-mid);
  font-size: 0.85rem;
  margin-top: 4px;
  margin-bottom: 26px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 7px;
}
.form-group input {
  width: 100%;
  background: #f6f2ea;
  border: 1px solid rgba(42, 42, 42, 0.16);
  border-radius: 9px;
  color: var(--cream);
  font: inherit;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: #ffffff;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: #000;
  font-family: var(--font-d);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: transform 0.15s var(--ease), filter 0.2s var(--ease);
}
.btn-submit:hover { filter: brightness(1.06); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.login-error {
  background: rgba(220, 70, 70, 0.12);
  border: 1px solid rgba(220, 70, 70, 0.4);
  color: #f3b6b6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
