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

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --border: #2a2a2a;
  --red: #e11f3d;
  --red-2: #ff3b57;
  --red-dim: #4a0e18;
  --text: #f4f2f0;
  --text-dim: #9a9793;
  --text-dimmer: #6b6864;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body.auth-body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

body.auth-body::after {
  content: "";
  position: fixed;
  top: -20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--red-dim) 0%, transparent 70%);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}

h1, h2, h3 {
  font-family: "Inter", sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

.auth-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 32px;
}
.auth-nav img { width: 32px; height: 32px; }
.auth-nav span {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 17px;
}

.auth-stage {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  animation: authIn .6s cubic-bezier(.16,.84,.44,1);
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 18px;
  padding: 8px 16px 8px 12px;
  border-radius: 100px;
  border: 1.4px solid rgba(255, 59, 87, 0.55);
  background: rgba(225, 31, 61, 0.08);
  box-shadow: 0 0 10px 0 rgba(255, 59, 87, 0.3), 0 0 20px 0 rgba(255, 59, 87, 0.12);
}

.auth-card h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-error {
  background: rgba(225, 31, 61, 0.1);
  border: 1px solid rgba(225, 31, 61, 0.4);
  color: var(--red-2);
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  min-height: 0;
}
.auth-error:empty { display: none; }

.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.auth-field input::placeholder { color: var(--text-dimmer); }
.auth-field input:focus {
  outline: none;
  border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(255, 59, 87, 0.15);
}

.auth-switch {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 26px;
  margin-top: -6px;
}
.auth-switch:hover { color: var(--red-2); }

.auth-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(225, 31, 61, 0.55);
  transition: background .25s ease, transform .25s ease;
}
.auth-submit:hover {
  background: var(--red-2);
  transform: translateY(-2px);
}

.auth-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-dimmer);
}
.auth-foot a { color: var(--red-2); }
.auth-foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
  .auth-nav { padding: 20px; }
}
