:root {
  --bg: #0f0f1a;
  --panel: #1a1a2e;
  --panel-2: #16213e;
  --border: #2a2a4a;
  --text: #e0e0e0;
  --text-dim: #888;
  --accent: #ff9f43;
  --accent-soft: rgba(255, 159, 67, 0.15);
  --danger: #e74c3c;
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}

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

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.login-brand h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

input {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.primary {
  background: var(--accent);
  color: #1a1a2e;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 9px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 0.5rem;
}

.primary:hover { opacity: 0.88; }
.primary:active { opacity: 0.75; }

.error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 8px;
  color: #e74c3c;
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
}

.hidden { display: none; }
