/* ============================================================
   Mizup — Auth pages (login, register, forgot/reset password,
   setup-account, change-password). Loaded only by layouts/auth.php.
   Visual only: form actions, CSRF and validation are untouched.
   ============================================================ */

.auth-body {
  min-height: 100vh; margin: 0;
  background:
    radial-gradient(900px 500px at 10% 0%, #FFE3DD 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 100%, #FDE9E4 0%, transparent 60%),
    #FBF3F1;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.auth-stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; box-sizing: border-box; }

/* Device-style frame */
.auth-frame {
  width: 100%; max-width: 1120px; min-height: 640px;
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: #FFF6F4; border: 12px solid #222227; border-radius: 40px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(120, 30, 20, .35), 0 18px 40px -20px rgba(23,23,26,.35);
  animation: authFrameIn .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes authFrameIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* Left scene */
.auth-scene { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #FFF4F1 0%, #FBDCD5 60%, #1E1E23 60%); }
.auth-scene-art { position: absolute; inset: 0 0 128px 0; }
.auth-scene-art svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.auth-scene-copy {
  position: absolute; left: 28px; right: 28px; bottom: 26px; color: #fff; z-index: 2;
}
.auth-scene-copy h2 { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: #fff; }
.auth-scene-copy p { font-size: 13.5px; color: rgba(255,255,255,.72); margin: 0; max-width: 40ch; }

/* Floating task chips */
.auth-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 14px; padding: 9px 13px 9px 9px;
  box-shadow: 0 12px 30px -10px rgba(120,30,20,.35); font-size: 12px; color: #17171A;
  animation: authFloat 6s ease-in-out infinite;
}
.auth-float strong { display: block; font-size: 12.5px; font-weight: 700; }
.auth-float small { display: block; color: #8A8B90; font-size: 11px; }
.auth-float.f1 { top: 9%; right: 7%; }
.auth-float.f2 { top: 30%; left: 5%; animation-delay: -2s; }
.auth-float.f3 { top: 44%; right: 5%; animation-delay: -4s; padding: 9px 13px; }
.af-icon { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.af-green { background: #E2F3E6; color: #1E7B3B; }
.af-red { background: #FDE2DF; color: #E63D2E; }
.af-dots { display: inline-flex; gap: 3px; }
.af-dots i { width: 9px; height: 9px; border-radius: 999px; background: #E63D2E; display: inline-block; }
.af-dots i.off { background: #F3C9C4; }
@keyframes authFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Right card */
.auth-card { background: #fff; margin: 18px 18px 18px 0; border-radius: 26px; display: flex; flex-direction: column; justify-content: center; padding: 44px 56px 28px; position: relative; }
.auth-form-inner { width: 100%; max-width: 360px; margin: 0 auto; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-logo img { height: 34px; }
.auth-title, .auth-form-inner h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; text-align: center; margin: 0 0 8px; color: #17171A; }
.auth-title .wave { display: inline-block; animation: authWave 2.4s ease-in-out 1s 2; transform-origin: 70% 70%; }
@keyframes authWave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(10deg); } }
.auth-form-inner p.sub { text-align: center; color: #8A8B90; font-size: 14.5px; margin: 0 0 28px; }

.auth-form-inner .form-group { margin-bottom: 14px; }
.auth-form-inner label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: #3D3E43; margin-bottom: 6px; }
.auth-form-inner .label-link { font-weight: 600; font-size: 12.5px; }
.auth-form-inner input[type=email], .auth-form-inner input[type=password], .auth-form-inner input[type=text] {
  width: 100%; box-sizing: border-box; padding: 13px 18px; border: 1.5px solid #E6E2E0; border-radius: 999px; font-size: 14.5px;
  background: #FCFBFA; transition: border-color .15s, box-shadow .15s, background .15s; font-family: inherit;
}
.auth-form-inner input:hover { border-color: #D9D3D0; }
.auth-form-inner input:focus { outline: none; background: #fff; border-color: #E63D2E; box-shadow: 0 0 0 4px rgba(230,61,46,.12); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: #8A8B90; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pw-toggle:hover, .pw-toggle.is-on { color: #E63D2E; background: #FDECEA; }

.auth-form-inner .btn { width: 100%; border-radius: 999px; padding: 14px 20px; font-size: 15px; font-weight: 700; margin-top: 6px; }
.auth-form-inner .btn-primary { background: #E63D2E; box-shadow: 0 10px 24px -10px rgba(230,61,46,.65); }
.auth-form-inner .btn-primary:hover:not(:disabled) { background: #D23423; transform: translateY(-1px); }
.auth-form-inner .btn.is-loading { opacity: .75; pointer-events: none; }
.auth-form-inner .flash { border-radius: 14px; }
.auth-form-inner a { color: #E63D2E; font-weight: 600; }
.auth-form-inner p { font-size: 13.5px; }
.auth-foot { text-align: center; color: #8A8B90; margin-top: 22px; }
.auth-form-back { display: block; text-align: center; font-size: 12.5px; color: #A3A4A8; margin-top: 26px; }
.auth-form-back:hover { color: #17171A; }

@media (max-width: 960px) {
  .auth-stage { padding: 0; align-items: stretch; }
  .auth-frame { grid-template-columns: 1fr; border: 0; border-radius: 0; min-height: 100vh; box-shadow: none; background: transparent; }
  .auth-scene { display: none; }
  .auth-card { margin: 0; border-radius: 0; padding: 48px 22px 24px; justify-content: flex-start; background: transparent; }
  .auth-form-inner { background: #fff; border-radius: 26px; padding: 30px 22px 26px; box-shadow: 0 24px 50px -24px rgba(120,30,20,.35); box-sizing: border-box; }
  .auth-title, .auth-form-inner h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-frame, .auth-float, .auth-title .wave { animation: none !important; }
}
