@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0e16;
  --panel: #111827;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7ebf3;
  --text-dim: #8b95a8;
  --accent: #10b981;
  --accent-2: #34d399;
  --danger: #f43f5e;
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.auth-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  margin: 24px;
  padding: 32px 30px 26px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.auth-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
}
.auth-icon svg { width: 20px; height: 20px; stroke: #04140d; }

.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.auth-head p { font-size: 0.82rem; color: var(--text-dim); margin: 0; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.field input {
  width: 100%; padding: 10px 13px; font-size: 0.9rem; color: var(--text);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 4px; outline: none; transition: border-color .12s;
  font-family: inherit;
}
.field input:focus { border-color: var(--accent); }

.auth-submit {
  width: 100%; padding: 11px; margin-top: 4px; border: none; border-radius: 4px;
  background: var(--accent);
  color: #04140d; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: background .12s;
  font-family: inherit;
}
.auth-submit:hover { background: var(--accent-2); }

.auth-error {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: #fca5b5;
  background: rgba(244,63,94,0.1); border: 1px solid rgba(244,63,94,0.25);
  border-radius: 4px; padding: 9px 11px; margin-bottom: 16px;
}

.auth-foot {
  margin-top: 18px; text-align: center; font-size: 0.7rem; color: var(--text-dim);
}
