/* Soluo sign-in, sign-up and password pages: split screen, brand panel + form. */
:root {
  --navy: #03101f;
  --deep: #053a6b;
  --blue: #037ef3;
  --teal: #0a9ea8;
  --ink: #0b1c2c;
  --muted: #64748b;
  --line: #d9e2ec;
  --field: #f8fafc;
  --danger: #dc2626;
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display: "Syne", "Figtree", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.auth {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: #f4f7fb;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.icon { flex: none; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- Brand panel ---------- */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 40px 48px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, var(--navy) 0%, #062a4f 45%, var(--deep) 70%, #0a6f7a 100%);
  isolation: isolate;
}
.auth-aurora span {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: auth-drift 22s ease-in-out infinite alternate;
}
.auth-aurora span:nth-child(1) { width: 460px; height: 460px; top: -120px; right: -140px; background: #037ef3; }
.auth-aurora span:nth-child(2) { width: 380px; height: 380px; bottom: -100px; left: -120px; background: #0a9ea8; animation-duration: 26s; animation-delay: -6s; }
.auth-aurora span:nth-child(3) { width: 260px; height: 260px; top: 45%; left: 40%; background: #1e3a8a; opacity: 0.5; animation-duration: 30s; animation-delay: -12s; }
@keyframes auth-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.12); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}
.auth-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 75%);
}
.auth-logo img { display: block; height: 34px; width: auto; }
.auth-brand-copy { max-width: 470px; }
.auth-eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.auth-brand-copy h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.auth-brand-copy p { margin: 0; color: rgba(226, 238, 250, 0.82); font-size: 1.02rem; max-width: 420px; }

.auth-preview {
  position: relative;
  flex: 1;
  min-height: 250px;
  max-width: 460px;
}
.auth-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(2, 10, 25, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: auth-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both, auth-float 7s ease-in-out infinite;
}
.auth-float strong { display: block; font-size: 0.92rem; }
.auth-float small { display: block; color: rgba(226, 238, 250, 0.75); font-size: 0.78rem; }
.auth-float--a { top: 0; left: 0; right: 40px; animation-delay: 0.15s, 0.9s; }
.auth-float--b { top: 96px; left: 60px; right: 0; animation-delay: 0.3s, 2.4s; }
.auth-float--c { top: 186px; left: 16px; right: 70px; gap: 18px; animation-delay: 0.45s, 1.6s; }
@keyframes auth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes auth-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-float-logo, .auth-float-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-family: var(--display);
  font-weight: 800;
}
.auth-float-logo { background: #fff; color: #7e1f86; }
.auth-float-icon { background: rgba(3, 126, 243, 0.35); color: #e0f2fe; font-family: var(--font); font-size: 1.1rem; }
.auth-badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.auth-badge--green { background: rgba(34, 197, 94, 0.22); color: #bbf7d0; }
.auth-stat strong { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.auth-bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-left: auto; }
.auth-bars i {
  display: block;
  width: 7px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #7dd3fc, #0a9ea8);
  transform-origin: bottom;
  animation: auth-grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.auth-bars i:nth-child(2) { animation-delay: 0.1s; }
.auth-bars i:nth-child(3) { animation-delay: 0.2s; }
.auth-bars i:nth-child(4) { animation-delay: 0.3s; }
.auth-bars i:nth-child(5) { animation-delay: 0.4s; }
.auth-bars i:nth-child(6) { animation-delay: 0.5s; }
@keyframes auth-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.auth-brand-foot { margin: 0; font-size: 0.8rem; color: rgba(226, 238, 250, 0.55); }

/* ---------- Form side ---------- */
.auth-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 24px 24px;
}
.auth-session {
  position: absolute;
  top: 18px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-session form { margin: 0; }
.auth-session button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 4px 10px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.auth-card {
  width: 100%;
  min-width: 0;
  max-width: 420px;
  animation: auth-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.auth-card--wide { max-width: 620px; }
.auth-logo-mobile { display: none; }
.auth-logo-mobile img { height: 26px; width: auto; }
.auth-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.auth-card h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.auth-lead { margin: 0 0 28px; color: var(--muted); font-size: 1rem; }
.auth-icon-hero {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #e0f2fe, #ccfbf1);
  color: var(--deep);
  animation: auth-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.auth-icon-hero .icon { width: 28px; height: 28px; }
.auth-icon-hero--success { background: linear-gradient(145deg, #dcfce7, #ccfbf1); color: #15803d; }
@keyframes auth-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

.auth-form { display: grid; gap: 18px; }
.auth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.auth-section-title {
  grid-column: 1 / -1;
  margin: 8px 0 -4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.auth-field--wide { grid-column: 1 / -1; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth-label-row label { font-weight: 600; font-size: 0.92rem; }
.auth-label-row a { font-size: 0.85rem; font-weight: 600; }
.auth-input {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input > .icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.15s ease;
}
.auth-input input:not([type="checkbox"]):not([type="file"]),
.auth-input select,
.auth-input textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-input textarea { min-height: 96px; resize: vertical; }
.auth-input.has-icon input:not([type="checkbox"]):not([type="file"]) { padding-left: 44px; }
.auth-input.is-password input:not([type="checkbox"]):not([type="file"]) { padding-right: 48px; }
.auth-input input:hover, .auth-input select:hover, .auth-input textarea:hover { border-color: #b8c7d8; }
.auth-input input:focus, .auth-input select:focus, .auth-input textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(3, 126, 243, 0.14);
}
.auth-input:focus-within > .icon { color: var(--blue); }
.auth-input input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--field);
  font: inherit;
  font-size: 0.9rem;
}
.auth-input input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.auth-eye {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.auth-eye:hover { background: #eef2f7; color: var(--ink); }
.auth-eye:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.auth-eye .icon { width: 19px; height: 19px; }
.auth-eye .icon-hide { display: none; }
.auth-eye[aria-pressed="true"] .icon-show { display: none; }
.auth-eye[aria-pressed="true"] .icon-hide { display: block; }
.auth-help { margin: 0; font-size: 0.82rem; color: var(--muted); }
.auth-error { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--danger); }
.auth-field.has-error .auth-input input,
.auth-field.has-error .auth-input select { border-color: #fca5a5; background: #fff7f7; }
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-check:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.auth-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.auth-check strong { display: block; }
.auth-check small { color: var(--muted); }

.auth-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}
.auth-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
  animation: auth-shake 0.4s ease both;
}
.auth-alert--success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.auth-alert a { font-weight: 700; }
@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue) 0%, #0572d6 45%, var(--teal) 100%);
  background-size: 160% 100%;
  background-position: 0% 0%;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(3, 126, 243, 0.28);
  transition: background-position 0.35s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.auth-btn:hover { text-decoration: none; background-position: 100% 0%; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(3, 126, 243, 0.34); }
.auth-btn:active { transform: translateY(0); }
.auth-btn:focus-visible { outline: 3px solid rgba(3, 126, 243, 0.45); outline-offset: 2px; }
.auth-btn .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.auth-btn:hover .icon { transform: translateX(3px); }
.auth-btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.auth-btn--ghost:hover { background: #f8fafc; box-shadow: none; }
.auth-btn.is-loading { pointer-events: none; color: transparent; }
.auth-btn.is-loading .icon { opacity: 0; }
.auth-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-actions { display: grid; gap: 10px; margin-top: 6px; }
.auth-foot { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 0.95rem; }
.auth-divider { height: 1px; margin: 24px 0; background: var(--line); }
.auth-meta { margin: 14px 0 0; font-size: 0.88rem; color: var(--muted); }
.auth-quote { margin: 8px 0 0; padding: 10px 14px; border-left: 3px solid var(--line); background: #f8fafc; border-radius: 0 10px 10px 0; color: #334155; }

.site-credit { text-align: center; font-size: 0.8rem; color: #94a3b8; }
.site-credit p { margin: 2px 0; }

/* ---------- Small screens: brand panel becomes a compact header ---------- */
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { min-height: auto; padding: 28px 24px 30px; gap: 18px; }
  .auth-preview, .auth-brand-foot { display: none; }
  .auth-brand-copy h2 { font-size: 1.5rem; }
  .auth-brand-copy p { font-size: 0.95rem; }
  .auth-main { justify-content: flex-start; padding: 32px 20px 24px; }
  .auth-session { position: static; align-self: flex-end; }
}
@media (max-width: 560px) {
  .auth-brand-copy p { display: none; }
  .auth-brand-copy h2 { font-size: 1.3rem; margin: 0; }
  .auth-eyebrow { margin-bottom: 8px; }
  .auth-card h1 { font-size: 1.65rem; }
  .auth-form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
