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

:root {
  --black: #000;
  --card: #1c1c1c;
  --card-2: #262626;
  --card-3: #2f2f2f;
  --line: #2b2b2b;
  --text: #ffffff;
  --muted: #9b9b9b;
  --muted-2: #6d6d6d;
  --green: #00c40f;
  --green-d: #00a80d;
  --green-glow: rgba(0, 196, 15, 0.35);
  --red: #e5121f;
  --orange: #ff8a1e;
  --r: 12px;
  --r-lg: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(0, 196, 15, 0.16), transparent 62%),
    var(--black);
  color: var(--text);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
a { color: var(--green); }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.auth-brand svg { width: 30px; height: 30px; color: var(--green); }
.auth-brand span { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }

h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}
.auth-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 20px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.field { margin-bottom: 16px; }
.field.hidden { display: none; }

.code-input {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 6px;
  text-align: center;
  font-size: 20px;
}

button.primary {
  width: 100%;
  border: 0;
  border-radius: var(--r);
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
button.primary:hover:not(:disabled) { background: var(--green-d); }
button.primary:active:not(:disabled) { transform: translateY(1px); }
button.primary:disabled { opacity: 0.55; cursor: default; }

.msg {
  border-radius: var(--r);
  font-size: 13px;
  line-height: 1.5;
  padding: 11px 13px;
  margin-bottom: 16px;
  display: none;
}
.msg.show { display: block; }
.msg.error { background: rgba(229, 18, 31, 0.13); border: 1px solid rgba(229, 18, 31, 0.4); color: #ff8f96; }
.msg.info { background: rgba(0, 196, 15, 0.11); border: 1px solid rgba(0, 196, 15, 0.35); color: #7ce887; }

.hint {
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.55;
  margin-top: 8px;
}

.auth-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.auth-foot svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--green); }
