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

:root {
  --navy: #0b1030;
  --blue-bright: #3f5bff;
  --violet: #7b4fff;
  --paper: #f6f8fe;
  --ink: #10142b;
  --muted: #565f79;
  --line: #e3e7f7;
  --error-bg: #fdecec;
  --error-text: #c22b2b;
}

* { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--navy);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(123, 79, 255, 0.35), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(63, 91, 255, 0.35), transparent 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 30px 60px -20px rgba(11, 16, 48, 0.55);
}

.auth-logo {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; margin-bottom: 26px;
}
.auth-logo .auth-logo-img { height: 72px; width: auto; display: block; }
.auth-logo .brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.auth-logo .logo-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-bright), var(--violet));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}

.auth-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.auth-subtitle { color: var(--muted); font-size: 0.95rem; margin: 0 0 26px; }

.auth-alert {
  background: var(--error-bg); color: var(--error-text);
  padding: 12px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 20px;
}

.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink);
}
.auth-field input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 0.96rem; font-family: inherit; color: var(--ink);
  background: var(--paper);
}
.auth-field input:focus {
  outline: none; border-color: var(--blue-bright); background: #fff;
  box-shadow: 0 0 0 4px rgba(63, 91, 255, 0.12);
}

.auth-submit {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-bright), var(--violet));
  color: #fff; font-weight: 600; font-size: 0.98rem; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(36, 64, 216, 0.6);
  transition: transform 0.15s ease;
}
.auth-submit:hover { transform: translateY(-1px); }

.auth-footer-link {
  text-align: center; margin: 22px 0 0; font-size: 0.9rem; color: var(--muted);
}
.auth-footer-link a { color: var(--blue-bright); font-weight: 600; text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }

.auth-back {
  display: block; text-align: center; margin-top: 18px;
  font-size: 0.85rem; color: rgba(255,255,255,0.7); text-decoration: none;
}
.auth-back:hover { color: #fff; }
