:root {
  --bg: #0b0d11;
  --card: #12151c;
  --card-2: #171b25;
  --border: #2b3242;
  --text: #f4f2ec;
  --muted: #94a0b3;
  --gold: #d9b063;
  --gold-bright: #f0d47c;
  --gold-dim: #a8842a;
  --danger: #e0554d;
  --danger-bg: #2a1712;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(217, 176, 58, 0.16), transparent 62%),
    radial-gradient(700px 420px at 90% 110%, rgba(32, 80, 106, 0.30), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.login-card-inner {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  padding: 38px 34px 34px;
  text-align: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border: 1px solid var(--gold);
  border-radius: 11px;
  background:
    linear-gradient(135deg, transparent 40%, rgba(217, 176, 58, 0.18) 41%, rgba(217, 176, 58, 0.18) 59%, transparent 60%),
    linear-gradient(160deg, #1b1f29, #10131a);
  box-shadow: 0 0 0 3px rgba(217, 176, 58, 0.10);
}

.title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.05em;
  margin: 0;
}

.subtitle {
  margin: 6px 0 28px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.field {
  display: block;
  text-align: left;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  background: #0d0f14;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 176, 58, 0.15);
}

.field input::placeholder { color: var(--muted); }

.error {
  min-height: 18px;
  margin: 2px 0 10px;
  font-size: 13.5px;
  color: var(--danger);
}

.btn-primary {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  cursor: pointer;
  color: #16130a;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  box-shadow: 0 6px 22px -8px rgba(217, 176, 58, 0.5);
  transition: filter 0.15s ease, transform 0.08s ease;
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }