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

/* ─── Variables ───────────────────────────────── */
:root {
  --bg:           #07070F;
  --surface:      #0F0F1A;
  --card-left:    #0D0D1C;
  --card-right:   #13131E;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --accent:       #6C63FF;
  --accent-2:     #9B8FFF;
  --glow:         rgba(108,99,255,0.28);
  --text:         #ECEAF8;
  --muted:        #6E6C85;
  --success:      #2DD4BF;
  --error:        #F87171;
  --error-bg:     rgba(248,113,113,0.08);
  --success-bg:   rgba(45,212,191,0.08);
  --s1:           #3B3B52;  /* strength bar inactive */
}

/* ─── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Body ────────────────────────────────────── */
body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(108,99,255,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(45,212,191,0.04) 0%, transparent 60%);
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Navbar ──────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-link {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link strong { color: var(--accent); font-weight: 500; }

/* ─── Page Center ─────────────────────────────── */
.page-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

/* ─── Card ────────────────────────────────────── */
.card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  width: 100%;
  max-width: 860px;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  animation: fadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

/* ─── Left Panel ──────────────────────────────── */
.card-left {
  background: var(--card-left);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* decorative grid lines */
.card-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* bottom glow blob */
.card-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(108,99,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.brand-icon {
  font-size: 30px;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card-left h1 {
  font-family: 'Syne', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.card-left > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent);
}

/* ─── Right Panel ─────────────────────────────── */
.card-right {
  background: var(--card-right);
  padding: 2.8rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
}

.form-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.form-header p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 5px;
}

/* ─── Alerts ──────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
}
.alert-error {
  background: var(--error-bg);
  border: 1px solid rgba(248,113,113,0.2);
  color: var(--error);
}
.alert-success {
  background: var(--success-bg);
  border: 1px solid rgba(45,212,191,0.2);
  color: var(--success);
}

/* ─── Form ────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder { color: var(--muted); }

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.form-group input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(248,113,113,0.15);
}

/* ─── Password eye toggle ─────────────────────── */
.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 2.8rem;
}

.eye-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s;
}
.eye-btn:hover { color: var(--text); }

/* ─── Password strength bar ───────────────────── */
.strength-bar {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.strength-bar span {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--s1);
  transition: background 0.3s;
}

.strength-bar.s1 span:nth-child(1) { background: var(--error); }
.strength-bar.s2 span:nth-child(-n+2) { background: #FB923C; }
.strength-bar.s3 span:nth-child(-n+3) { background: #FACC15; }
.strength-bar.s4 span                 { background: var(--success); }

.strength-label {
  font-size: 11px;
  color: var(--muted);
  min-height: 14px;
}

/* ─── Checkbox ────────────────────────────────── */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-group label a {
  color: var(--accent);
  text-decoration: none;
}
.checkbox-group label a:hover { text-decoration: underline; }

/* ─── Submit Button ───────────────────────────── */
.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.25rem;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.btn-submit:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--glow);
}

.btn-submit:active { transform: translateY(0); box-shadow: none; }

/* ─── Login hint ──────────────────────────────── */
.login-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.login-hint a { color: var(--accent); text-decoration: none; }
.login-hint a:hover { text-decoration: underline; }

/* ─── Animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 720px) {
  .card {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .card-left { display: none; }
  .card-right { padding: 2.2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1.25rem; }
  .card-right { padding: 2rem 1.25rem; }
}
