/* =====================================================================
   auth.css — Login / Signup / Forgot password.
   Split layout: brand/illustration panel + form panel.
   ===================================================================== */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ---------- Brand / marketing panel ---------- */
.auth-aside {
  position: relative;
  background: var(--rz-bg-soft);
  color: var(--rz-ink);
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.auth-aside::before { content: none; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .rz-brand { color: var(--rz-ink); font-size: 1.25rem; }
.auth-aside-body { margin-top: auto; }
.auth-aside h2 { color: var(--rz-ink); font-weight: 600; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; margin-bottom: 16px; max-width: 480px; }
.auth-aside p { color: var(--rz-muted); font-size: 1.15rem; line-height: 1.38; max-width: 440px; }

.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-weight: 400; }
.auth-points .tick { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--color-ok); display: grid; place-items: center; flex: none; }

.auth-quote { margin-top: 40px; padding: 26px 28px; background: #fff; border: 0; border-radius: var(--rz-radius-lg); }
.auth-quote p { color: var(--rz-ink); font-size: 1rem; margin-bottom: 12px; }
.auth-quote .who { display: flex; align-items: center; gap: 12px; }
.auth-quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--rz-ink); color: #fff; display: grid; place-items: center; font-weight: 600; }
.auth-quote .who small { color: var(--rz-muted); display: block; }

/* ---------- Form panel ---------- */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .back { display: inline-flex; align-items: center; gap: 6px; color: var(--rz-primary-600); font-size: .9rem; font-weight: 400; margin-bottom: 26px; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 8px; }
.auth-card .sub { color: var(--rz-muted); margin-bottom: 28px; }

.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.btn-social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px; border-radius: var(--rz-radius-pill); border: 1px solid var(--color-steel); background: #fff; font-family: var(--rz-font-body); font-weight: 400; font-size: .94rem; color: var(--rz-ink); transition: border-color .15s ease; }
.btn-social:hover { color: var(--rz-ink); border-color: var(--rz-ink); text-decoration: none; }

.auth-legal { margin: -10px 0 18px; font-size: .8rem; color: var(--rz-muted); text-align: center; line-height: 1.5; }
.auth-legal a { color: var(--rz-primary-600); }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--rz-muted); font-size: .85rem; margin: 8px 0 22px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--rz-line); flex: 1; }

/* Form fields */
.rz-field { margin-bottom: 18px; }
.rz-field label { display: block; font-family: var(--rz-font-body); font-weight: 600; font-size: .86rem; color: var(--rz-ink); margin-bottom: 7px; }
.rz-input-wrap { position: relative; }
.rz-input-wrap .lead-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--rz-muted); pointer-events: none; }
.rz-input {
  width: 100%; padding: 12px 14px 12px 42px;
  border: 1px solid var(--color-steel); border-radius: var(--rz-radius-field);
  font-family: var(--rz-font-body); font-size: 1.06rem; letter-spacing: -.022em; color: var(--rz-ink);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.rz-input:focus { outline: none; border-color: var(--rz-primary); box-shadow: var(--rz-focus); }
.rz-input.no-ico { padding-left: 14px; }
.rz-input::placeholder { color: var(--color-steel); }
.rz-pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--rz-muted); padding: 6px; cursor: pointer; }
.rz-pw-toggle:hover { color: var(--rz-ink); }

.rz-field-error { display: none; color: #e30000; font-size: .82rem; margin-top: 6px; }
.rz-field.is-invalid .rz-input { border-color: #e30000; background: #fff5f5; box-shadow: none; }
.rz-field.is-invalid .rz-field-error { display: block; }

/* Password strength */
.pw-strength { margin-top: 8px; display: none; }
.rz-field.show-strength .pw-strength { display: block; }
.pw-bars { display: flex; gap: 6px; }
.pw-bars span { height: 5px; flex: 1; border-radius: 3px; background: var(--rz-line); transition: background .2s ease; }
.pw-strength small { display: block; margin-top: 6px; color: var(--rz-muted); font-size: .8rem; }
.pw-strength[data-level="1"] .pw-bars span:nth-child(1) { background: #ef4444; }
.pw-strength[data-level="2"] .pw-bars span:nth-child(-n+2) { background: #f59e0b; }
.pw-strength[data-level="3"] .pw-bars span:nth-child(-n+3) { background: #eab308; }
.pw-strength[data-level="4"] .pw-bars span { background: #22c55e; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.rz-check { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--rz-body); cursor: pointer; }
.rz-check input { width: 17px; height: 17px; accent-color: var(--rz-primary); }

.auth-alert { display: none; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--rz-radius-sm); font-size: .92rem; margin-bottom: 18px; }
.auth-alert.is-error { display: flex; background: #fff5f5; color: #c00; border: 0; }
.auth-alert-link { color: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.btn-social.is-suggested { border-color: var(--rz-primary); box-shadow: var(--rz-focus); animation: rz-nudge .5s ease 2; }
@keyframes rz-nudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .btn-social.is-suggested { animation: none; } }
.auth-alert.is-success { display: flex; background: #f0f8f2; color: var(--color-ok); border: 0; }

.auth-submit { width: 100%; padding: 12px; font-size: 1.06rem; }
.auth-submit .spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: rz-spin .7s linear infinite; }
.auth-submit.is-loading .spin { display: inline-block; }
.auth-submit.is-loading .label { opacity: .8; }
@keyframes rz-spin { to { transform: rotate(360deg); } }

.auth-foot { text-align: center; margin-top: 24px; color: var(--rz-muted); font-size: .95rem; }

/* Responsive */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; }
}
