:root {
  color-scheme: light dark;
  --bg: #040407;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f3f5ff;
  --muted: rgba(243, 245, 255, 0.75);
  --accent: #7a5cff;
  --accent-alt: #00e0ff;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

.auth-body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(circle at top, var(--accent-alt), var(--bg));
  color: var(--text);
}

.auth-shell {
  width: min(520px, 95vw);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  padding: 3rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 45px 90px rgba(0, 0, 0, 0.45);
}

.auth-with-header {
  flex-direction: column;
  padding-top: 0;
}

.auth-with-header .auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
  width: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.brand-link img {
  height: 2.4rem;
  width: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

h1,
h2 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  margin: 0 0 0.5rem;
}

form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

.form-group-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid var(--panel-border);
  background: rgba(4, 4, 7, 0.65);
  color: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

button {
  padding: 1rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: var(--bg);
  cursor: pointer;
  margin-top: 0.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
button:focus {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(122, 92, 255, 0.4);
}

.auth-meta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-meta a {
  color: var(--accent);
}

.alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-card {
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.summary-table th,
.summary-table td {
  text-align: left;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.summary-table th {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
