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

:root {
  --serif: 'Fraunces', 'New York', 'Charter', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; overflow-x: hidden; }
body {
  background: #050507;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.login-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% -5%, rgba(10, 132, 255, 0.20), transparent 65%),
    radial-gradient(50% 40% at 90% 10%, rgba(191, 90, 242, 0.14), transparent 70%);
  filter: blur(40px) saturate(140%);
}

.login-wrap {
  width: 100%;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
}

.login-card {
  width: min(420px, 100%);
  padding: 36px 32px 32px;
  background: linear-gradient(160deg, #16161c 0%, #0c0c10 100%);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.login-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.login-title {
  font-family: var(--serif);
  font-size: 36px; font-weight: 800; letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 0 0 12px;
}

.login-sub {
  font-size: 15px; line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0 0 24px;
}

.login-form {
  display: flex; flex-direction: column; gap: 10px;
}

.login-form input {
  height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, background .15s ease;
}
.login-form input:focus {
  border-color: #0a84ff;
  background: rgba(255,255,255,0.10);
}
.login-form input::placeholder { color: rgba(255,255,255,0.4); }

.login-form button {
  height: 48px;
  font: inherit;
  font-size: 15px; font-weight: 700;
  color: #fff;
  background: #0a84ff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.login-form button:active { transform: scale(0.98); }
.login-form button:disabled { opacity: 0.5; cursor: default; }

.login-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14.5px; line-height: 1.5;
}
.login-message.success {
  background: color-mix(in oklab, #30d158 18%, transparent);
  color: #6be584;
  border: 0.5px solid color-mix(in oklab, #30d158 30%, transparent);
}
.login-message.error {
  background: color-mix(in oklab, #ff453a 18%, transparent);
  color: #ff8c80;
  border: 0.5px solid color-mix(in oklab, #ff453a 30%, transparent);
}
