/* =========================================================
   D spin — auth.css
   Login & Signup pages (split layout: portrait art + form)
   Solid palette only
   ========================================================= */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

/* ---------- Left portrait art panel ---------- */
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 48px 36px;
  background: var(--primary-deep);
  overflow: hidden;
}
.auth-art::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.auth-art-illus {
  position: relative;
  width: min(360px, 84%);
}
.auth-art-illus svg { width: 100%; height: auto; display: block; }
.auth-art h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: #fff;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -.4px;
}
.auth-art h2 .gold { color: var(--gold); }
.auth-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9d5ea;
  font-size: .92rem;
  font-weight: 500;
}
.auth-points svg { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; }

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

.auth-card {
  width: min(430px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 36px;
  box-shadow: var(--shadow-card);
}

.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.auth-brand .brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--primary-deep); }
.auth-brand .brand-logo-img { height: 46px; width: auto; border-radius: 10px; }

.auth-card h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--primary-deep);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -.4px;
}
.auth-sub { text-align: center; color: var(--text-dim); font-size: .93rem; margin-bottom: 24px; }

.auth-form { display: flex; flex-direction: column; gap: 15px; }

.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field .input-wrap { position: relative; }

.field input,
.field select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: var(--text-mute); }
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,102,214,.12);
}

.field.error input { border-color: var(--red); }
.field-error { display: none; color: var(--red); font-size: .8rem; margin-top: 6px; }
.field.error .field-error { display: block; }

.field .toggle-pass {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-mute); padding: 6px;
}
.field .toggle-pass:hover { color: var(--primary); }
.field .toggle-pass .eye-ic { width: 19px; height: 19px; display: block; }
.field .toggle-pass .eye-ic[hidden] { display: none; }

.auth-shell-single { grid-template-columns: 1fr; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
}

.checkbox { display: flex; align-items: center; gap: 8px; color: var(--text-dim); cursor: pointer; }
.checkbox input { accent-color: var(--primary); width: 16px; height: 16px; }

.auth-link { color: var(--primary); font-weight: 600; }
.auth-link:hover { color: var(--primary-dark); }

.btn-block {
  width: 100%;
  padding: 13px 24px;
  font-size: .96rem;
  box-shadow: 0 12px 26px -12px rgba(28,102,214,.6);
}

.auth-switch { text-align: center; color: var(--text-dim); font-size: .92rem; margin-top: 18px; }
.auth-switch a { color: var(--primary); font-weight: 600; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-mute); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px;
  margin: 2px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.auth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: .82rem;
  text-align: center;
}

/* Form error banner */
.form-alert {
  display: none;
  gap: 10px;
  align-items: center;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: .88rem;
  margin-bottom: 4px;
}
.form-alert.show { display: flex; }
.form-alert.error { background: rgba(214,69,69,.08); border: 1px solid rgba(214,69,69,.3); color: #c02626; }
.form-alert.success { background: rgba(31,157,85,.08); border: 1px solid rgba(31,157,85,.3); color: #15803d; }

/* Password strength meter (signup) */
.strength-meter { display: flex; gap: 6px; margin-top: 8px; }
.strength-meter span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s ease; }
.strength-text { display: none; font-size: .78rem; margin-top: 6px; font-weight: 600; }
.strength-text.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { padding: 36px 24px 26px; }
  .auth-art-illus { width: min(260px, 60%); }
  .auth-art h2 { font-size: 1.3rem; }
  .auth-points { display: none; }
}
@media (max-width: 480px) {
  .auth-main { padding: 24px 16px; }
  .auth-card { padding: 30px 22px; }
}
@media (min-width: 901px) {
  .auth-art { min-height: 100vh; }
}