/* CINTA STORE — AUTH MOTION LAYER
   Only for Login / Register / Forgot Password / Reset Password UI.
   Does not modify backend logic or shared site styles.
*/
.auth-motion-shell{min-height:calc(100vh - 66px);display:grid;place-items:center;padding:26px 14px 64px;position:relative;overflow:hidden}
.auth-motion-shell::before,.auth-motion-shell::after{content:"";position:absolute;border:2px solid #e4e4dd;border-radius:999px;pointer-events:none;opacity:.55}
.auth-motion-shell::before{width:280px;height:280px;left:-190px;top:12%}
.auth-motion-shell::after{width:230px;height:230px;right:-160px;bottom:9%}
.auth-motion-card{position:relative;z-index:2;width:min(470px,100%);background:#fff;border:3px solid var(--black);border-radius:24px;box-shadow:8px 9px 0 var(--black);padding:22px 22px 20px;overflow:hidden;animation:authCardIn .62s cubic-bezier(.22,1,.36,1) both}
.auth-motion-card::after{content:"";position:absolute;inset:-35% -20%;background:linear-gradient(120deg,rgba(255,255,255,.58),transparent 38%);transform:translateX(-55%);animation:authSheen 1s .18s ease-out both;pointer-events:none}
.auth-motion-top{position:relative;z-index:3;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:24px}
.auth-motion-back{width:38px;height:38px;display:grid;place-items:center;border:3px solid var(--black);border-radius:11px;background:#fff;box-shadow:2px 3px 0 var(--black);font:700 22px/1 'Space Mono',monospace;color:#111;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
.auth-motion-back:hover{transform:translateY(-1px);box-shadow:2px 4px 0 var(--black)}
.auth-motion-back:active{transform:translate(2px,2px);box-shadow:0 1px 0 var(--black)}
.auth-motion-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;align-items:center}
.auth-motion-step{height:5px;border-radius:999px;background:#e6e6df;position:relative;overflow:hidden}
.auth-motion-step.done{background:#f0c900}
.auth-motion-step.active{background:#e6e6df}
.auth-motion-step.active::after,.auth-motion-step.done::after{content:"";position:absolute;inset:0;background:#f0c900;transform-origin:left;animation:authStepFill .55s cubic-bezier(.22,1,.36,1) both}
.auth-motion-step.done::after{animation:none;transform:scaleX(1)}
.auth-motion-count{font:700 9px 'Space Mono',monospace;letter-spacing:.03em;color:#777;white-space:nowrap}
.auth-motion-panel{position:relative;z-index:3;animation:authPanelIn .45s cubic-bezier(.22,1,.36,1) both}
.auth-motion-icon{width:70px;height:70px;display:grid;place-items:center;margin:4px 0 16px;border:3px solid var(--black);border-radius:20px;background:var(--yellow);box-shadow:5px 6px 0 var(--black);font:700 31px/1 'Fredoka',sans-serif;animation:authIconIn .62s .05s cubic-bezier(.22,1,.36,1) both}
.auth-motion-icon.is-plain{border:0;box-shadow:none;background:transparent;width:auto;height:auto;font-size:54px;margin:2px 0 12px}
.auth-motion-heading{margin:0;position:relative;z-index:3;font:700 clamp(34px,7vw,46px)/.96 'Fredoka',sans-serif;letter-spacing:-.045em;color:#111;animation:authTextIn .55s .08s cubic-bezier(.22,1,.36,1) both}
.auth-motion-copy{margin:10px 0 21px;position:relative;z-index:3;color:#686862;font-size:12px;line-height:1.6;max-width:415px;animation:authTextIn .55s .13s cubic-bezier(.22,1,.36,1) both}
.auth-motion-form{position:relative;z-index:3;animation:authFormIn .55s .18s cubic-bezier(.22,1,.36,1) both}
.auth-motion-field{position:relative;margin-top:13px}
.auth-motion-field .input{width:100%;min-height:54px;padding:15px 48px 13px 16px;border:3px solid #deded7;border-radius:17px;background:#fafaf6;color:#111;box-shadow:none;outline:none;font:500 15px/1.2 'Fredoka',sans-serif;transition:border-color .22s ease,background .22s ease,box-shadow .22s ease,transform .22s ease}
.auth-motion-field .input::placeholder{color:#9a9a94;opacity:1;transition:opacity .16s ease}
.auth-motion-field .input:focus::placeholder{opacity:0}
.auth-motion-field .input:focus{border-color:var(--black);background:#fff;box-shadow:4px 5px 0 var(--yellow);transform:translateY(-1px)}
.auth-motion-field.has-value .input{background:#eef4ff;border-color:#d9d9d2;animation:authFieldFilled .32s cubic-bezier(.22,1,.36,1) both}
.auth-motion-field:focus-within .input{background:#fff;border-color:var(--black)}
.auth-motion-field .label{position:absolute;left:15px;top:16px;z-index:4;opacity:0;pointer-events:none;padding:0 6px;background:#fff;color:#111;border-radius:3px;font:700 8px/1 'Space Mono',monospace;letter-spacing:.03em;text-transform:uppercase;transition:top .2s cubic-bezier(.22,1,.36,1),left .2s ease,opacity .18s ease}
.auth-motion-field:focus-within .label,.auth-motion-field.has-value .label{top:-7px;left:12px;opacity:1}
.auth-motion-password-toggle{position:absolute;right:8px;top:9px;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#7a7a74;display:grid;place-items:center;cursor:pointer;z-index:5;transition:background .18s ease,color .18s ease,transform .18s ease}
.auth-motion-password-toggle:hover{background:#ecece7;color:#111}
.auth-motion-password-toggle:active{transform:scale(.94)}
.auth-motion-password-toggle svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.auth-motion-main-btn{position:relative;z-index:4;width:100%;min-height:52px;margin-top:18px;border-radius:16px!important;box-shadow:4px 5px 0 var(--black)!important;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;overflow:hidden!important}
.auth-motion-main-btn:hover{transform:translateY(-1px)!important;filter:brightness(1.02)}
.auth-motion-main-btn:active{transform:translate(2px,3px)!important;box-shadow:1px 1px 0 var(--black)!important}
.auth-motion-main-btn:disabled{cursor:not-allowed;filter:none!important;opacity:1}
.auth-motion-footer{position:relative;z-index:3;text-align:center;margin:17px 0 0;color:#777;font-size:11px;line-height:1.65}
.auth-motion-footer a{font-weight:900;color:#111;text-decoration:none;border-bottom:1px solid #111}
.auth-motion-note{position:relative;z-index:3;color:#85857f;font-size:10px;line-height:1.5;margin-top:10px}
.auth-motion-error{animation:authShake .38s ease both}
.auth-motion-hidden{display:none!important}
.auth-motion-field-error{border-color:#111!important;box-shadow:4px 5px 0 #ffb7b7!important;background:#fff!important}
.auth-motion-otp{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:15px}
.auth-motion-otp input{width:100%;min-width:0;height:56px;text-align:center;border:3px solid #deded7;border-radius:14px;background:#fafaf6;outline:none;font:700 20px/1 'Space Mono',monospace;color:#111;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
.auth-motion-otp input:focus{border-color:#111;background:#fff;box-shadow:3px 4px 0 var(--yellow);transform:translateY(-1px)}
.auth-motion-otp input.filled{background:#fff}
.auth-motion-otp input.shake{animation:authShake .34s ease both}
.auth-motion-email-hint{text-align:center;color:#777;font-size:10px;line-height:1.5;margin-top:12px}
.auth-motion-resend{text-align:center;margin:14px 0 0;font-size:10px;color:#999}
.auth-motion-resend button{border:0;background:transparent;font:inherit;font-weight:900;color:#111;cursor:pointer;padding:0}
.auth-motion-resend button:disabled{color:#aaa;cursor:default}
.auth-motion-password-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.auth-motion-rule{display:flex;align-items:center;gap:6px;min-height:22px;font-size:9px;color:#8d8d87;transition:color .18s ease}
.auth-motion-rule::before{content:"";width:8px;height:8px;border-radius:50%;border:1px solid #bdbdb5;background:#fff;transition:all .18s ease;flex:0 0 auto}
.auth-motion-rule.ok{color:#111}.auth-motion-rule.ok::before{background:#18c887;border-color:#111;box-shadow:inset 0 0 0 2px #fff}
.auth-motion-strength{margin-top:12px;height:7px;border:2px solid var(--black);border-radius:999px;background:#f0f0ea;overflow:hidden;box-shadow:2px 2px 0 var(--black)}
.auth-motion-strength span{display:block;width:0;height:100%;background:#18c887;transform-origin:left;transition:width .3s cubic-bezier(.22,1,.36,1)}
.auth-motion-strength-copy{display:flex;justify-content:space-between;gap:10px;margin-top:6px;color:#898982;font:700 8px 'Space Mono',monospace;text-transform:uppercase}
/* Train send-button animation — adapted to Cinta Store colors/theme. */
.auth-motion-main-btn.is-sending{color:transparent!important;background:var(--yellow)!important}
.auth-motion-train-track{position:absolute;inset:0 12px;display:flex;align-items:center;overflow:hidden;opacity:0;pointer-events:none}
.auth-motion-main-btn.is-sending .auth-motion-train-track{opacity:1}
.auth-motion-track-line{width:100%;height:0;border-top:3px dashed #111;opacity:.28}
.auth-motion-train{position:absolute;left:-38px;top:50%;width:30px;height:22px;transform:translateY(-50%);animation:authTrainRun 1.15s cubic-bezier(.45,.05,.55,.95) infinite}
.auth-motion-train::before{content:"";position:absolute;left:3px;bottom:5px;width:23px;height:11px;border:3px solid #111;border-radius:5px 5px 2px 2px;background:#fff}
.auth-motion-train::after{content:"";position:absolute;left:9px;bottom:0;width:6px;height:6px;border:2px solid #111;border-radius:50%;background:#fff;box-shadow:13px 0 0 -2px #fff,13px 0 0 0 #111}
.auth-motion-train-window{position:absolute;left:9px;top:5px;width:8px;height:6px;border:2px solid #111;border-radius:2px;background:var(--yellow);z-index:2}
.auth-motion-train-front{position:absolute;right:0;bottom:5px;width:7px;height:8px;border:3px solid #111;border-left:0;border-radius:0 4px 2px 0;background:#fff}
.auth-motion-train-smoke{position:absolute;left:3px;top:-4px;width:5px;height:5px;border:2px solid #111;border-radius:50%;opacity:.55;animation:authSmoke .7s ease-out infinite}
.auth-motion-train-smoke.s2{left:-3px;top:-8px;animation-delay:.18s}.auth-motion-train-smoke.s3{left:8px;top:-10px;animation-delay:.34s}
.auth-motion-loading-text{position:absolute;left:0;right:0;bottom:-18px;text-align:center;font-size:9px;color:#777;font-weight:800;opacity:0;transition:opacity .18s ease}
.auth-motion-main-btn.is-sending + .auth-motion-loading-text{opacity:1}
/* Success screen */
.auth-motion-success{display:grid;place-items:center;text-align:center;min-height:430px;position:relative;z-index:3;animation:authSuccessPanelIn .58s cubic-bezier(.22,1,.36,1) both}
.auth-motion-success-art{position:relative;width:150px;height:150px;display:grid;place-items:center;margin:0 auto 10px}
.auth-motion-success-circle{width:92px;height:92px;border-radius:50%;background:#2db267;display:grid;place-items:center;position:relative;box-shadow:5px 6px 0 var(--black);animation:authSuccessCircleIn .62s cubic-bezier(.22,1,.36,1) both}
.auth-motion-check-svg{width:56px;height:56px;overflow:visible}
.auth-motion-check-path{fill:none;stroke:#fff;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:90;stroke-dashoffset:90;animation:authCheckDraw .65s .3s cubic-bezier(.65,0,.45,1) forwards}
.auth-motion-ray{position:absolute;width:5px;height:13px;border-radius:999px;background:#efc900;transform-origin:50% 73px;opacity:0;animation:authRayPop .5s .45s cubic-bezier(.22,1,.36,1) forwards}
.auth-motion-ray.r1{--r:0deg;transform:rotate(0deg) translateY(-70px)}.auth-motion-ray.r2{--r:45deg;transform:rotate(45deg) translateY(-70px);background:#4a6fff}.auth-motion-ray.r3{--r:90deg;transform:rotate(90deg) translateY(-70px);background:#efc900}.auth-motion-ray.r4{--r:135deg;transform:rotate(135deg) translateY(-70px);background:#e34dff}.auth-motion-ray.r5{--r:180deg;transform:rotate(180deg) translateY(-70px);background:#4a6fff}.auth-motion-ray.r6{--r:225deg;transform:rotate(225deg) translateY(-70px);background:#efc900}.auth-motion-ray.r7{--r:270deg;transform:rotate(270deg) translateY(-70px);background:#4a6fff}.auth-motion-ray.r8{--r:315deg;transform:rotate(315deg) translateY(-70px);background:#efc900}
.auth-motion-success h2{margin:0;font:700 30px/.98 'Fredoka',sans-serif;letter-spacing:-.035em}
.auth-motion-success p{max-width:290px;margin:9px auto 0;font-size:11px;line-height:1.6;color:#81817a}
.auth-motion-success .auth-motion-main-btn{margin-top:26px;max-width:300px}
.auth-motion-complete-note{margin-top:10px;font:700 8px 'Space Mono',monospace;color:#999;text-transform:uppercase;letter-spacing:.08em}
@keyframes authCardIn{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@keyframes authSheen{from{transform:translateX(-70%) rotate(7deg)}to{transform:translateX(85%) rotate(7deg)}}
@keyframes authIconIn{from{opacity:0;transform:translateY(14px) scale(.72) rotate(-6deg)}to{opacity:1;transform:none}}
@keyframes authTextIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes authFormIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes authPanelIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
@keyframes authFieldFilled{0%{transform:scale(.995);box-shadow:0 0 0 rgba(0,0,0,0)}55%{transform:scale(1.008);box-shadow:0 0 0 3px rgba(240,201,0,.17)}100%{transform:scale(1);box-shadow:none}}
@keyframes authStepFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes authShake{20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}100%{transform:none}}
@keyframes authTrainRun{0%{left:-38px;transform:translateY(-50%) translateX(0)}50%{left:50%;transform:translateY(-50%) translateX(-50%) rotate(.5deg)}100%{left:calc(100% + 8px);transform:translateY(-50%) translateX(0)}}
@keyframes authSmoke{0%{transform:scale(.6);opacity:0}45%{opacity:.55}100%{transform:translate(-4px,-5px) scale(1.15);opacity:0}}
@keyframes authSuccessPanelIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes authSuccessCircleIn{0%{opacity:0;transform:scale(.35)}65%{opacity:1;transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes authCheckDraw{to{stroke-dashoffset:0}}
@keyframes authRayPop{0%{opacity:0;transform:scale(.1) rotate(0deg) translateY(-70px)}100%{opacity:.95;transform:scale(1) rotate(var(--r,0deg)) translateY(-70px)}}
@media(max-width:600px){
  .auth-motion-shell{padding:18px 11px 48px}
  .auth-motion-card{padding:18px 15px 17px;border-radius:20px;box-shadow:6px 7px 0 var(--black)}
  .auth-motion-top{grid-template-columns:36px minmax(0,1fr) auto;gap:8px;margin-bottom:20px}
  .auth-motion-back{width:36px;height:36px}
  .auth-motion-step{height:4px}
  .auth-motion-icon{width:60px;height:60px;border-radius:17px;font-size:26px;box-shadow:4px 5px 0 var(--black)}
  .auth-motion-heading{font-size:36px}
  .auth-motion-copy{font-size:11px}
  .auth-motion-field .input{min-height:52px;font-size:14px}
  .auth-motion-otp{gap:5px}.auth-motion-otp input{height:50px;font-size:18px}
  .auth-motion-password-rules{gap:6px}.auth-motion-rule{font-size:8px}
  .auth-motion-success{min-height:390px}.auth-motion-success-art{width:132px;height:132px}.auth-motion-success-circle{width:82px;height:82px}.auth-motion-check-svg{width:48px;height:48px}
}
@media(prefers-reduced-motion:reduce){
  .auth-motion-card,.auth-motion-card::after,.auth-motion-icon,.auth-motion-heading,.auth-motion-copy,.auth-motion-form,.auth-motion-panel,.auth-motion-success,.auth-motion-step.active::after,.auth-motion-train,.auth-motion-check-path,.auth-motion-success-circle,.auth-motion-ray,.auth-motion-train-smoke{animation:none!important}
  .auth-motion-check-path{stroke-dashoffset:0}.auth-motion-success-circle{transform:none!important;opacity:1}.auth-motion-ray{opacity:.8}
  .auth-motion-field .input,.auth-motion-otp input,.auth-motion-password-toggle,.auth-motion-main-btn{transition:none!important}
}
