* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-hover: #1f2630;
  --border: #21262d;
  --border-soft: #2a313c;
  --text: #e6edf3;
  --text-muted: #7d8590;
  --text-dim: #57606a;
  --accent: #ff7a59;
  --accent-hover: #ff9170;
  --danger: #f85149;
  --radius: 10px;
  --radius-lg: 14px;
}

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  font-size: 40px;
  margin-bottom: 8px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
  font-family: inherit;
}

.tab.active {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form.hidden { display: none; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

input, select {
  padding: 11px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

input::placeholder { color: var(--text-dim); }

input:focus, select:focus {
  border-color: var(--accent);
}

.primary {
  padding: 13px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 6px;
  font-family: inherit;
}

.primary:hover { background: var(--accent-hover); }
.primary:active { transform: scale(0.99); }
.primary:disabled { opacity: 0.5; cursor: not-allowed; }

.error {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  text-align: center;
}

.hidden { display: none; }