:root {
  --bg:      #141414;
  --card:    #1e1e1e;
  --border:  rgba(255,255,255,0.08);
  --fg:      #fafafa;
  --muted:   #888;
  --primary: #7a2e2e;
  --accent:  #c9a96e;
  --error:   #c0464a;
  --radius:  4px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

.back-link {
  position: fixed;
  top: 24px;
  left: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  z-index: 10;
}
.back-link:hover { color: var(--accent); }

/* ── LAYOUT ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
}

.login-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  margin-bottom: 24px;
  opacity: 0.9;
}

.login-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-sub {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ── FORM ── */
.field {
  display: block;
  margin-bottom: 20px;
  text-align: left;
}
.field span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: border-color 0.3s;
  outline: none;
}
.field input:focus {
  border-bottom-color: var(--accent);
}
.field input::placeholder { color: rgba(255,255,255,0.2); }

/* ── ERROR ── */
.error-msg {
  min-height: 20px;
  margin: 10px 0 14px;
  font-size: 0.8rem;
  color: var(--error);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s;
}
.error-msg.show { opacity: 1; }

/* ── BUTTONS ── */
.login-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: var(--primary);
  color: var(--fg);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.login-btn:hover { background: #8e3636; }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.forgot-btn {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: transparent;
  color: var(--muted);
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}
.forgot-btn:hover { color: var(--accent); }

@media (max-width: 480px) {
  .login-card { padding: 36px 24px; }
  .login-title { font-size: 1.8rem; }
}
