:root {
  --bg: #0B1120;
  --bg-2: #131A2E;
  --card: #131A2E;
  --card-2: #1a2130;
  --border: #1F2937;
  --text: #F1F5F9;
  --text-dim: #8b94a7;
  --accent: #10B981;
  --accent-2: #34D399;
  --red: #ea3943;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: center; height: 68px; position: relative; }
.logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.logo-img { height: 32px !important; max-height: 32px !important; width: auto !important; opacity: 0.95; display: block; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 16px;
}

main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }

.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px 32px;
}
.auth-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.auth-card .sub { color: var(--text-dim); font-size: 14px; margin: 6px 0 26px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text); font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .15s ease;
}
.field input:focus { border-color: var(--accent); }
.field input.mono { text-transform: uppercase; letter-spacing: 1px; }

.btn {
  display: block; width: 100%; padding: 13px; border-radius: 10px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: none;
  background: var(--accent); color: #04170f;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.93; }

.alert {
  border-radius: 10px; padding: 12px 14px; font-size: 14px;
  margin-bottom: 20px; border: 1px solid;
}
.alert-error { background: rgba(234,57,67,0.1); border-color: rgba(234,57,67,0.4); color: #ff8f96; }
.alert-success { background: rgba(22,199,132,0.1); border-color: rgba(22,199,132,0.4); color: #6fe3b4; }

.switch { text-align: center; font-size: 14px; color: var(--text-dim); margin-top: 22px; }
.switch a { color: var(--accent); font-weight: 600; }
.hint { font-size: 12px; color: var(--text-dim); margin-top: 10px; text-align: center; }
.hint code { background: var(--card-2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 5px; color: var(--accent); }

footer { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; font-size: 12px; color: #5c6580; }

.logo-mark { background: transparent !important; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

@media (max-width: 720px) {
  .nav { height: 64px; }
  .logo-img { height: 28px !important; max-height: 28px !important; }
}
