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

/* ==========================================================
   Auth pages (Login / Register) – "Midnight" split layout
   ========================================================== */
:root {
  --bg: #0a0e1a;
  --surface: #121a2e;
  --surface-2: #19223b;
  --border: rgba(148, 163, 184, .14);
  --text: #e7eaf3;
  --muted: #8a93a8;
  --accent: #8b5cf6;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #06b6d4 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 100% 0%, rgba(6, 182, 212, .12), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(139, 92, 246, .16), transparent 60%);
  background-attachment: fixed;
}

a { color: #a78bfa; text-decoration: none; font-weight: 700; }
a:hover { color: #c4b5fd; text-decoration: underline; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ---------- Brand side ---------- */
.auth-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background: var(--grad);
  color: #fff;
}

.auth-side::before,
.auth-side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
}

.auth-side::before { width: 520px; height: 520px; right: -200px; bottom: -200px; }
.auth-side::after { width: 340px; height: 340px; right: -110px; bottom: -110px; }

.auth-side > * { position: relative; z-index: 1; }

.auth-brand {
  display: inline-flex;
  align-self: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 8px 14px;
}

.auth-brand img { height: 36px; width: auto; display: block; }

.auth-pitch h1 {
  font-size: 2.6rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 460px;
}

.auth-pitch p {
  margin-top: 14px;
  max-width: 420px;
  font-size: 1.02rem;
  opacity: .9;
}

.auth-points { list-style: none; display: grid; gap: 12px; }

.auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.auth-points li span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .2);
  font-size: 15px;
}

/* ---------- Form side ---------- */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-container { width: 100%; max-width: 420px; }

.login-card,
.register-card {
  width: 100%;
  max-width: 440px;
  text-align: left;
}

.login-logo,
.register-logo { display: none; }

.login-title,
.register-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}

.login-subtitle,
.register-subtitle {
  margin: 6px 0 30px;
  color: var(--muted);
  font-size: .98rem;
}

form { text-align: left; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: #b6bdcc;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: .98rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-group select option { background: var(--surface-2); }
.form-group input::placeholder { color: #5f6880; }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .2);
}

.form-options,
.form-check {
  margin: 4px 0 24px;
  font-size: .9rem;
  color: var(--muted);
}

.form-check label { display: inline; font-weight: 500; color: var(--muted); }
.remember input,
.form-check input { margin-right: 6px; accent-color: var(--accent); }

.btn-login,
.btn-submit {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(99, 102, 241, .4);
  transition: transform .15s, filter .2s;
}

.btn-login:hover,
.btn-submit:hover { transform: translateY(-1px); filter: brightness(1.08); }

.signup-text,
.login-link,
.login-links {
  margin-top: 22px;
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; }

  .auth-side {
    padding: 22px 24px;
    flex-direction: row;
    align-items: center;
  }

  .auth-pitch,
  .auth-points { display: none; }

  .auth-side::before { width: 260px; height: 260px; right: -90px; bottom: -150px; }
  .auth-side::after { display: none; }

  .auth-main { align-items: flex-start; padding: 32px 20px 48px; }
}
