*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #4f7fff; --blue-dark: #3d68ff; --navy: #07071a;
  --bg: #07071a; --card-bg: #0f1022; --card-bg2: #141830;
  --text: #eeeeff; --muted: rgba(238,238,255,0.5); --border: rgba(255,255,255,0.09);
  --border-focus: rgba(79,127,255,0.6); --radius: 14px;
  --green: #10d98a; --red: #ff5e5e;
}
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* ── Form side ── */
.auth-card {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 64px;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--text); text-decoration: none;
  margin-bottom: 40px; display: block;
  letter-spacing: -0.02em;
}
.logo-f { color: var(--blue); text-shadow: 0 0 20px rgba(79,127,255,0.5); }
h1 { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.auth-sub { color: var(--muted); margin-bottom: 32px; font-size: 0.95rem; }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.88rem; font-weight: 600;
  margin-bottom: 7px; color: rgba(238,238,255,0.8);
}
.field input {
  width: 100%; padding: 13px 16px;
  background: var(--card-bg2);
  border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.95rem;
  font-family: inherit; outline: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(79,127,255,0.15);
}

.btn-submit {
  width: 100%; padding: 14px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,127,255,0.35);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-link { margin-top: 20px; text-align: center; font-size: 0.9rem; color: var(--muted); }
.auth-link a { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }
.form-note { margin-top: 12px; font-size: 0.8rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--blue); text-decoration: none; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.88rem; font-weight: 500; }
.alert-error {
  background: rgba(255,94,94,0.1);
  color: #ff7b7b;
  border: 1px solid rgba(255,94,94,0.25);
}
.alert-success {
  background: rgba(16,217,138,0.1);
  color: #10d98a;
  border: 1px solid rgba(16,217,138,0.25);
}

/* ── Visual side ── */
.auth-visual {
  background: linear-gradient(135deg, #07071a 0%, #0d0a2e 50%, #0a1040 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 60px; position: relative; overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(79,127,255,0.15), transparent);
  pointer-events: none;
}
.auth-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 30% 70%, rgba(176,95,255,0.1), transparent);
  pointer-events: none;
}
.visual-inner { max-width: 400px; position: relative; z-index: 1; }
.visual-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,127,255,0.12);
  border: 1px solid rgba(79,127,255,0.25);
  color: rgba(238,238,255,0.9);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 24px;
}
.visual-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem; font-weight: 800;
  color: #fff; margin-bottom: 12px;
  line-height: 1.25; letter-spacing: -0.02em;
}
.visual-inner p { color: rgba(238,238,255,0.55); font-size: 0.95rem; line-height: 1.65; margin-bottom: 32px; }
.visual-features { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.visual-features li {
  display: flex; align-items: center; gap: 12px;
  color: rgba(238,238,255,0.75); font-size: 0.95rem;
}
.visual-features li::before {
  content: '';
  width: 20px; height: 20px; flex-shrink: 0;
  background: rgba(79,127,255,0.2);
  border: 1px solid rgba(79,127,255,0.4);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234f7fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}

/* ── Divider or ── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Select field ── */
.field select {
  width: 100%; padding: 13px 16px;
  background: var(--card-bg2);
  border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.95rem;
  font-family: inherit; outline: none;
  color: var(--text); cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b72a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select:focus { border-color: var(--border-focus); }

@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-card { padding: 40px 24px; }
}
