@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:            #08090e;
  --surface:       #0f1017;
  --surface-2:     #14151f;
  --surface-3:     #1a1b28;
  --border:        #1e2030;
  --border-light:  #252840;
  --accent:        #38bdf8;
  --accent-dim:    rgba(56, 189, 248, 0.08);
  --accent-glow:   rgba(56, 189, 248, 0.25);
  --green:         #4ade80;
  --green-dim:     rgba(74, 222, 128, 0.1);
  --red:           #f87171;
  --red-dim:       rgba(248, 113, 113, 0.1);
  --text:          #e2e4f0;
  --text-muted:    #6b7280;
  --text-dim:      #374151;
}

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

body {
  font-family: 'Urbanist', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  justify-content: center;
  text-decoration: none;
}

.auth-brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.auth-brand__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.auth-card h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-card .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  font-family: 'Urbanist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

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

input::placeholder { color: var(--text-dim); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  padding: 0 22px;
  background: var(--accent);
  color: #0a0a0e;
  font-family: 'Urbanist', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
  margin-top: 8px;
}

.btn:hover {
  background: #7dd3fc;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.alert {
  padding: 11px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
}

.alert-error {
  background: var(--red-dim);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--red);
}

.alert-success {
  background: var(--green-dim);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
}

.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

.auth-footer a:hover { color: #7dd3fc; }
