:root {
  --bg: #0c0c0e;
  --surface: #131316;
  --surface-2: #1a1a1f;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f4f4f5;
  --text-muted: #71717a;
  --accent: #10b981;
  --accent-dim: rgba(16, 185, 129, 0.18);
  --radius: 10px;
  --danger: #f87171;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.login-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #047857);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #052e16;
}

.login-brand--kravot {
  justify-content: center;
  margin-bottom: 1.75rem;
}

.login-brand-logo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  max-height: 78px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
}

.login-card h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.login-card .lead {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.login-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}

.login-alert.err {
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
}

.login-widget-wrap {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
}

.login-help {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.login-help code {
  font-size: 0.7rem;
  color: #a1a1aa;
}

.login-help ol {
  margin: 0.5rem 0 0 1.1rem;
}

.login-help a {
  color: #86efac;
}

.back-panel {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #86efac;
  text-decoration: none;
}

.back-panel:hover {
  text-decoration: underline;
}
