

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink-900: #1C1C1C;
  --ink-800: #262220;
  --ink-700: #322C26;
  --gold-500: #D6BB00;
  --gold-400: #E8D34D;
  --gold-300: #F2E38A;
  --paper: #F1F2EE;
  --text-muted: rgba(241, 242, 238, 0.6);
  --error: #E8756A;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  min-height: 100vh;
}

/* ---------------- Background ---------------- */
.login-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5vw 8vw;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(214, 187, 0, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(214, 187, 0, 0.10), transparent 50%),
    linear-gradient(135deg, #262220 0%, #1C1C1C 55%, #100F0E 100%);
}

.bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-shapes circle,
.bg-shapes path,
.bg-shapes line {
  vector-effect: non-scaling-stroke;
}

/* ---------------- Top-left brand ---------------- */
.brand-corner {
  position: absolute;
  top: 40px;
  left: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-corner img {
  height: 40px;
  width: auto;
}

/* ---------------- Welcome copy ---------------- */
.welcome-copy {
  position: absolute;
  left: 48px;
  bottom: 90px;
  max-width: 460px;
  z-index: 3;
}

.welcome-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  margin: 0 0 18px;
  color: var(--paper);
}

.welcome-copy .rule {
  width: 64px;
  height: 3px;
  background: var(--gold-500);
  border: none;
  margin: 0 0 20px;
}

.welcome-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* ---------------- Glass card ---------------- */
.form-card {
  position: relative;
  z-index: 3;
  width: 380px;
  padding: 40px 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.form-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 4px;
  color: var(--paper);
}

.form-card .sub {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 28px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(241, 242, 238, 0.75);
}

.field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input::placeholder { color: rgba(241, 242, 238, 0.35); }

.field input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, 0.1);
}

.password-wrap { position: relative; }

.toggle-pw {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-400);
  font-family: var(--font-body);
  padding: 4px;
}

.toggle-pw:focus-visible,
.submit-btn:focus-visible,
.field input:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(90deg, var(--gold-500), #B8890B);
  color: #1C1C1C;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  margin-top: 8px;
}

.submit-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.error-msg {
  background: rgba(232, 117, 106, 0.12);
  border: 1px solid rgba(232, 117, 106, 0.3);
  color: var(--error);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.form-foot {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .login-shell { justify-content: center; padding: 24px; }
  .welcome-copy { display: none; }
  .brand-corner { top: 24px; left: 24px; }
  .form-card { width: 100%; max-width: 380px; }
}
