:root {
  --sidebar-bg: #0b0f14;
  --sidebar-surface: #121820;
  --sidebar-border: #1e2733;
  --sidebar-text: #e8edf4;
  --sidebar-muted: #8b98a8;
  --accent: #2563eb;
  --brand: #16a34a;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --error: #dc2626;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f6f8fb;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  min-height: 100vh;
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  color: #fff;
  margin-bottom: 1.5rem;
}

.brand-logo svg {
  width: 26px;
  height: 26px;
}

.login-brand h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.login-brand p {
  margin: 0;
  color: var(--sidebar-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 360px;
}

.brand-features {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--sidebar-muted);
}

.brand-feature svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-card .subtitle {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.login-card label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.login-card input,
.login-card select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--surface);
  margin-bottom: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-card select {
  cursor: pointer;
}

.login-card input:focus,
.login-card select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-card button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.login-card button[type="submit"]:hover:not(:disabled) {
  background: #1d4ed8;
}

.login-card button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-card button[type="submit"] svg {
  width: 14px;
  height: 14px;
}

.login-card .error {
  margin: 0.75rem 0 0;
  color: var(--error);
  font-size: 0.8125rem;
  min-height: 1.25rem;
}

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

.login-card .hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 2rem 1.5rem;
  }

  .brand-features {
    display: none;
  }
}
