/* ═══════════════════════════════════════════════════
   SmartLib — Forgot / Verify / Reset Password CSS
   Place at: /css/forgot_password.css
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;font-size:16px}
body{font-family:'DM Sans',sans-serif;min-height:100vh;display:flex;background:#f5f5f0;overflow:hidden}
.split{display:flex;width:100%;min-height:100vh}

/* LEFT PANEL */
.panel-left{flex:0 0 38%;position:relative;overflow:hidden;background:#060606;display:flex;flex-direction:column;justify-content:flex-end;padding:2.5rem;transition:filter .4s ease}
.panel-left::before{content:'';position:absolute;inset:0;background:conic-gradient(from 90deg at 50% 50%,#000 0deg,#1a1a1a 50deg,#3d3d3d 95deg,#555 125deg,#222 190deg,#0a0a0a 250deg,#000 360deg);animation:conicSpin 18s linear infinite;transform-origin:50% 50%}
@keyframes conicSpin{0%{filter:brightness(1) contrast(1.3)}25%{filter:brightness(1.35) contrast(.9)}50%{filter:brightness(.72) contrast(1.5)}75%{filter:brightness(1.2) contrast(1.1)}100%{filter:brightness(1) contrast(1.3)}}
.blob{position:absolute;border-radius:50%;mix-blend-mode:screen;pointer-events:none;animation:blobDrift ease-in-out infinite alternate}
.blob-1{width:400px;height:400px;top:-90px;left:-120px;background:radial-gradient(circle,rgba(200,255,0,.14) 0%,transparent 65%);animation-duration:7s}
.blob-2{width:300px;height:300px;top:40%;right:10%;background:radial-gradient(circle,rgba(255,255,255,.09) 0%,transparent 65%);animation-duration:9.5s;animation-delay:-4s}
.blob-3{width:250px;height:250px;bottom:-60px;right:-50px;background:radial-gradient(circle,rgba(200,200,200,.10) 0%,transparent 65%);animation-duration:6s;animation-delay:-2.5s}
@keyframes blobDrift{0%{transform:scale(1) translate(0,0)}100%{transform:scale(1.3) translate(15px,20px)}}
.panel-left::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(to bottom,transparent,transparent 3px,rgba(0,0,0,.07) 3px,rgba(0,0,0,.07) 4px);pointer-events:none}
.grain{position:absolute;inset:0;z-index:1;opacity:.05;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:200px}

/* Arrow button */
.arrow-btn{position:absolute;top:2rem;right:2rem;width:52px;height:52px;border-radius:50%;background:#c8ff00;display:flex;align-items:center;justify-content:center;z-index:10;box-shadow:0 4px 20px rgba(200,255,0,.35);transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s;text-decoration:none}
.arrow-btn:hover{transform:scale(1.12) rotate(8deg);box-shadow:0 6px 28px rgba(200,255,0,.55)}
.arrow-btn svg{width:22px;height:22px;stroke:#000;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* Progress steps */
.progress-steps{position:absolute;top:2rem;left:2.5rem;display:flex;align-items:center;gap:.3rem;z-index:10}
.prog-step{display:flex;flex-direction:column;align-items:center;gap:.25rem}
.prog-num{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;font-family:'Syne',sans-serif;font-size:.7rem;font-weight:700;color:rgba(255,255,255,.3);transition:all .3s}
.prog-num svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round}
.prog-step span{font-size:.58rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.2);transition:color .3s}
.prog-step.active .prog-num{background:#c8ff00;border-color:#c8ff00;color:#000}
.prog-step.active span{color:rgba(255,255,255,.6)}
.prog-step.done .prog-num{background:rgba(200,255,0,.15);border-color:rgba(200,255,0,.4);color:#c8ff00}
.prog-step.done span{color:rgba(255,255,255,.4)}
.prog-line{width:22px;height:1.5px;background:rgba(255,255,255,.12);margin-bottom:14px;border-radius:2px;transition:background .4s}
.prog-line.filled{background:rgba(200,255,0,.5)}

/* Left content */
.left-content{position:relative;z-index:5}
.panel-badge{display:inline-flex;align-items:center;gap:.45rem;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:.35rem .8rem;font-size:.67rem;font-weight:500;color:rgba(255,255,255,.52);letter-spacing:.1em;text-transform:uppercase;margin-bottom:1.1rem;backdrop-filter:blur(8px)}
.badge-dot{width:6px;height:6px;border-radius:50%;background:#c8ff00;animation:dotPulse 2s ease-in-out infinite;flex-shrink:0}
@keyframes dotPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.6)}}
.big-text{font-family:'Syne',sans-serif;font-size:clamp(1.9rem,3.8vw,3rem);font-weight:800;line-height:1.06;letter-spacing:-.02em;color:#fff;text-transform:uppercase;margin-bottom:.8rem}
.big-text .w1{display:block;animation:colorCycle 5s ease-in-out infinite}
.big-text .w2{display:block;animation:colorCycle 5s ease-in-out infinite;animation-delay:-2.5s}
@keyframes colorCycle{0%{color:#fff}20%{color:#aaa}40%{color:#555}60%{color:#ccc}80%{color:#888}100%{color:#fff}}
.cursor-blink{display:inline-block;width:3px;height:.95em;background:#c8ff00;margin-left:4px;vertical-align:middle;animation:blink 1s step-end infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}
.left-sub{font-size:.8rem;font-weight:300;color:rgba(255,255,255,.42);line-height:1.75;max-width:240px;margin-bottom:1.2rem}
.left-sub strong{color:rgba(255,255,255,.7);font-weight:500}
.info-cards{display:flex;flex-direction:column;gap:.55rem}
.info-card{display:flex;align-items:flex-start;gap:.65rem;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);border-radius:10px;padding:.6rem .75rem;backdrop-filter:blur(6px)}
.info-icon{width:26px;height:26px;border-radius:6px;flex-shrink:0;background:rgba(200,255,0,.1);border:1px solid rgba(200,255,0,.18);display:flex;align-items:center;justify-content:center}
.info-icon svg{width:12px;height:12px;stroke:#c8ff00;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.info-title{font-size:.73rem;font-weight:500;color:rgba(255,255,255,.6);margin-bottom:.1rem}
.info-desc{font-size:.67rem;color:rgba(255,255,255,.3)}
.perk-list{list-style:none;display:flex;flex-direction:column;gap:.55rem}
.perk-list li{display:flex;align-items:center;gap:.6rem;font-size:.75rem;color:rgba(255,255,255,.5)}
.perk-icon{width:22px;height:22px;border-radius:6px;background:rgba(200,255,0,.1);border:1px solid rgba(200,255,0,.2);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.perk-icon svg{width:11px;height:11px;stroke:#c8ff00;fill:none;stroke-width:2.5;stroke-linecap:round}

/* RIGHT PANEL */
.panel-right{flex:1;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2.5rem 2rem;position:relative;overflow-y:auto}
.close-btn{position:absolute;top:1.2rem;right:1.4rem;width:32px;height:32px;border-radius:50%;background:transparent;border:1.5px solid rgba(0,0,0,.15);cursor:pointer;display:flex;align-items:center;justify-content:center;color:#666;font-size:.95rem;transition:all .2s;font-family:'DM Sans',sans-serif;text-decoration:none}
.close-btn:hover{background:#f0f0f0;border-color:rgba(0,0,0,.25);color:#000}
.form-box{width:100%;max-width:360px}
.brand{display:flex;align-items:center;gap:.45rem;justify-content:center;margin-bottom:1rem;text-decoration:none}
.brand-icon{width:28px;height:28px;background:#000;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.brand-icon svg{width:15px;height:15px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.brand-name{font-family:'Syne',sans-serif;font-size:1.18rem;font-weight:700;color:#000;letter-spacing:.04em}
.step-chip{display:block;width:fit-content;margin:0 auto .9rem;background:#f5f5f0;border:1.5px solid #e8e8e4;border-radius:20px;padding:.28rem .7rem;font-size:.68rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#888}
.hero-icon{width:60px;height:60px;border-radius:16px;background:#f8f8f6;border:1.5px solid #e8e8e4;display:flex;align-items:center;justify-content:center;margin:0 auto 1.1rem;position:relative}
.hero-icon svg{width:26px;height:26px;stroke:#0a0a0a}
.mail-hero,.key-hero{background:rgba(200,255,0,.08);border-color:rgba(200,255,0,.3)}
.mail-hero svg,.key-hero svg{stroke:#4a6800}
.hero-ping{position:absolute;top:-4px;right:-4px;width:13px;height:13px;border-radius:50%;background:#c8ff00;animation:ping 2s ease-in-out infinite}
@keyframes ping{0%{transform:scale(1);opacity:.9}60%{transform:scale(1.9);opacity:0}100%{transform:scale(1);opacity:0}}
.form-heading{font-family:'Syne',sans-serif;font-size:1.65rem;font-weight:700;color:#0a0a0a;text-align:center;margin-bottom:.3rem;letter-spacing:-.02em}
.form-subtext{font-size:.82rem;color:#888;text-align:center;margin-bottom:1.4rem;line-height:1.5}
.form-subtext strong{color:#333;font-weight:600}
.flash-error{display:flex;align-items:center;gap:.5rem;background:#fff5f5;border:1.5px solid rgba(220,60,60,.25);border-radius:10px;padding:.65rem .9rem;font-size:.8rem;color:#c33;margin-bottom:1rem;animation:flashIn .3s ease}
.flash-success{display:flex;align-items:center;gap:.5rem;background:#f0fff4;border:1.5px solid rgba(34,197,94,.3);border-radius:10px;padding:.65rem .9rem;font-size:.8rem;color:#166534;margin-bottom:1rem;animation:flashIn .3s ease}
.flash-error svg,.flash-success svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;flex-shrink:0}
@keyframes flashIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.form-group{margin-bottom:.88rem}
.form-label{display:block;font-size:.69rem;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:#888;margin-bottom:.38rem}
.input-wrap{position:relative;display:flex;align-items:center}
.input-icon{position:absolute;left:.9rem;pointer-events:none;color:#c0c0c0;transition:color .2s}
.input-icon svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.form-input{width:100%;padding:.76rem 2.75rem .76rem 2.55rem;font-family:'DM Sans',sans-serif;font-size:.9rem;color:#0a0a0a;background:#f8f8f6;border:1.5px solid #e8e8e4;border-radius:10px;outline:none;transition:all .22s ease;-webkit-appearance:none;appearance:none}
.form-input::placeholder{color:#bbb;font-style:italic;font-size:.85rem}
.form-input:focus{background:#fff;border-color:#000;box-shadow:0 0 0 3px rgba(0,0,0,.06)}
.input-wrap:focus-within .input-icon{color:#555}
.input-wrap.is-valid .form-input{border-color:#22c55e;background:#f0fff4}
.input-wrap.is-valid .input-icon{color:#22c55e}
.input-wrap.has-error .form-input{border-color:#ef4444;background:#fff8f8;box-shadow:0 0 0 3px rgba(239,68,68,.08)}
.input-wrap.has-error .input-icon{color:#ef4444}
.input-status{position:absolute;right:2.6rem;display:none;pointer-events:none}
.input-status svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.input-wrap.is-valid .input-status.ok{display:flex;color:#22c55e}
.input-wrap.has-error .input-status.err{display:flex;color:#ef4444}
.field-error{display:flex;align-items:center;gap:.35rem;font-size:.72rem;color:#ef4444;margin-top:.32rem;font-weight:500}
.field-error svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;flex-shrink:0}
.toggle-password{position:absolute;right:.85rem;background:none;border:none;cursor:pointer;color:#bbb;display:flex;align-items:center;padding:0;transition:color .2s}
.toggle-password:hover{color:#000}
.toggle-password svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round}
.pw-strength{margin-top:.4rem}
.pw-strength-bar{height:3px;border-radius:3px;background:#eee;overflow:hidden}
.pw-strength-fill{height:100%;border-radius:3px;width:0%;transition:width .3s ease,background .3s ease}
.pw-strength-label{font-size:.68rem;color:#aaa;margin-top:.22rem;transition:color .2s}
.match-indicator{font-size:.68rem;margin-top:.28rem;font-weight:500;display:none;align-items:center;gap:.3rem}
.match-indicator.match{display:flex;color:#22c55e}
.match-indicator.no-match{display:flex;color:#ef4444}

/* OTP inputs */
.otp-group{display:flex;gap:.5rem;justify-content:center;margin-bottom:1rem}
.otp-input{width:48px;height:58px;border:1.5px solid #e8e8e4;border-radius:10px;background:#f8f8f6;font-family:'Syne',sans-serif;font-size:1.4rem;font-weight:700;color:#0a0a0a;text-align:center;outline:none;transition:all .2s ease;-webkit-appearance:none;appearance:none;caret-color:transparent}
.otp-input:focus{border-color:#000;background:#fff;box-shadow:0 0 0 3px rgba(0,0,0,.06);transform:translateY(-2px)}
.otp-input.filled{border-color:#c8ff00;background:rgba(200,255,0,.07);color:#000}
.otp-input.has-error{border-color:#ef4444 !important;background:#fff8f8 !important}
.otp-input.shake{animation:otpShake .4s ease}
@keyframes otpShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
.otp-timer{text-align:center;font-size:.78rem;color:#aaa;margin-bottom:1rem}
.countdown-val{font-family:'Syne',sans-serif;font-weight:700;color:#555;transition:color .3s}
.countdown-val.urgent{color:#ef4444;animation:urgentPulse .8s ease-in-out infinite alternate}
@keyframes urgentPulse{from{opacity:1}to{opacity:.45}}
.resend-row{text-align:center;font-size:.82rem;color:#888;margin-bottom:1rem}
.resend-btn{background:none;border:none;cursor:pointer;font-family:'DM Sans',sans-serif;font-size:.82rem;color:#000;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:color .2s;padding:0}
.resend-btn:hover{color:#444}
.resend-btn:disabled{color:#aaa;cursor:not-allowed;text-decoration:none}

/* Submit */
.btn-submit{width:100%;padding:.88rem;font-family:'Syne',sans-serif;font-size:.92rem;font-weight:700;letter-spacing:.06em;color:#000;background:#c8ff00;border:none;border-radius:10px;cursor:pointer;position:relative;overflow:hidden;box-shadow:0 3px 16px rgba(200,255,0,.3);transition:all .25s ease;margin-bottom:1.2rem}
.btn-submit::after{content:'';position:absolute;inset:0;background:linear-gradient(to right,transparent,rgba(255,255,255,.28),transparent);transform:translateX(-100%) skewX(-15deg);transition:transform .5s ease}
.btn-submit:hover{background:#d4ff1a;box-shadow:0 5px 22px rgba(200,255,0,.5);transform:translateY(-1px)}
.btn-submit:hover::after{transform:translateX(130%) skewX(-15deg)}
.btn-submit:active{transform:translateY(0)}
.btn-submit:disabled{opacity:.6;cursor:not-allowed;transform:none}
.btn-submit span{position:relative;z-index:1}
.back-link{display:flex;align-items:center;justify-content:center;gap:.4rem;font-size:.8rem;color:#888;text-decoration:none;transition:color .2s;margin-bottom:.5rem}
.back-link:hover{color:#000}
.back-link svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fade-in{opacity:0;transform:translateY(12px);transition:opacity .45s ease,transform .45s ease}
.fade-in.show{opacity:1;transform:translateY(0)}
.quote-strip{position:fixed;bottom:0;right:0;left:38%;z-index:5;text-align:center;padding:.55rem 2rem;pointer-events:none}
.quote-strip p{font-size:.68rem;font-style:italic;color:rgba(0,0,0,.22);letter-spacing:.02em}

/* Tablet */
@media(max-width:1024px){.panel-left{flex:0 0 34%;padding:2rem}.big-text{font-size:clamp(1.7rem,3.3vw,2.5rem)}.otp-input{width:42px;height:52px;font-size:1.25rem}}
/* Mobile */
@media(max-width:768px){body{overflow:auto}.split{flex-direction:column}.panel-left{flex:none;height:200px;padding:1.5rem;justify-content:flex-end}.big-text{font-size:1.85rem}.left-sub,.info-cards,.perk-list{display:none}.arrow-btn{top:1.2rem;right:1.2rem;width:44px;height:44px}.progress-steps{top:1.2rem;left:1.5rem}.prog-num{width:24px;height:24px;font-size:.62rem}.prog-line{width:16px}.panel-right{flex:1;padding:1.75rem 1.5rem 4rem;justify-content:flex-start}.close-btn{display:none}.quote-strip{left:0}.otp-input{width:40px;height:50px;font-size:1.2rem}.otp-group{gap:.4rem}}
/* Small mobile */
@media(max-width:480px){.panel-left{height:165px;padding:1.2rem}.big-text{font-size:1.55rem}.panel-right{padding:1.5rem 1rem 4rem}.form-box{max-width:100%}.otp-input{width:36px;height:46px;font-size:1.1rem;border-radius:8px}.otp-group{gap:.3rem}}
/* Large desktop */
@media(min-width:1200px){.panel-left{flex:0 0 40%}.form-box{max-width:380px}.quote-strip{left:40%}}
