/* Login + Sign up: full-page split layout (form on the left, photo on the right) */
html, body.auth-split { height: 100%; }
body.auth-split {
  margin: 0;
  background: #fff;
  color: #101828;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.as-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 100vh; min-height: 100dvh; }

/* ---- form side ---- */
.as-form-side { display: flex; flex-direction: column; padding: 28px 40px; background: #fff; }
.as-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #101828; }
.as-logo img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.as-logo span { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.as-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.as-box { width: 100%; max-width: 360px; }
.as-title { margin: 0 0 8px; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.as-sub { margin: 0 0 28px; font-size: 14px; color: #667085; line-height: 1.5; }

.as-field { margin-bottom: 16px; }
.as-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #344054; }
.as-field input[type=text], .as-field input[type=email], .as-field input[type=password] {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px;
  border: 1px solid #d0d5dd; border-radius: 10px; background: #fff;
  font: inherit; font-size: 15px; color: #101828; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.as-field input::placeholder { color: #98a2b3; }
.as-field input:focus { border-color: #101828; box-shadow: 0 0 0 4px rgba(16, 24, 40, .08); }
.as-field input.is-bad { border-color: #d92d20; box-shadow: 0 0 0 4px rgba(217, 45, 32, .08); }
.as-field .pw-field input { padding-right: 44px; }
.as-error { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #fef3f2; border: 1px solid #fecdca; color: #b42318; font-size: 13.5px; line-height: 1.4; }
.as-hint { margin: -6px 0 16px; font-size: 12.5px; color: #d92d20; min-height: 0; }
.as-hint:empty { display: none; }

.as-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 46px; border-radius: 10px; border: 1px solid #101828;
  background: #101828; color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s, transform .05s; text-decoration: none; box-sizing: border-box;
}
.as-btn:hover { background: #1d2939; }
.as-btn:active { transform: scale(.99); }
.as-btn-ghost { background: #fff; color: #344054; border-color: #d0d5dd; }
.as-btn-ghost:hover { background: #f9fafb; }
.as-btn svg { width: 20px; height: 20px; flex: none; }
.as-gap { height: 12px; }
.as-foot { margin: 28px 0 0; text-align: center; font-size: 14px; color: #667085; }
.as-foot a { color: #101828; font-weight: 600; text-decoration: none; border-bottom: 1px solid #101828; }
.as-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #101828; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; transition: all .25s; z-index: 50;
}
.as-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- photo side ---- */
.as-photo-side { position: relative; overflow: hidden; background: #d9cfc4; }
.as-photo-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.as-photo-side > .as-slide { opacity: 0; transition: opacity 1.4s ease; }
.as-photo-side > .as-slide.on { opacity: 1; }
.as-glass {
  position: absolute; left: 40px; right: 40px; bottom: 40px; padding: 26px 28px; border-radius: 16px; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
.as-glass q { display: block; quotes: none; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.as-glass small { display: block; margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }

/* ---- sign up steps ---- */
.as-steps { display: flex; gap: 6px; margin: 0 0 22px; }
.as-steps i { flex: 1; height: 4px; border-radius: 4px; background: #eaecf0; transition: background .25s; }
.as-steps i.on { background: #101828; }
.as-stepno { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #667085; }
.as-step { display: none; }
.as-step.active { display: block; animation: asIn .28s ease; }
@keyframes asIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.as-nav { display: flex; gap: 10px; margin-top: 8px; }
.as-nav .as-btn { flex: 1; }
.as-nav .as-back { flex: 0 0 38%; }

@media (max-width: 900px) {
  .as-wrap { grid-template-columns: 1fr; }
  .as-photo-side { display: none; }
  .as-form-side { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .as-step.active { animation: none; } }
