:root{--ink:#242b26;--coral:#e54d32;--paper:#faf9f2;--lime:#d8ee88}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Plus Jakarta Sans',sans-serif}
a{color:inherit;text-underline-offset:4px}
button,input{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #798d4d;outline-offset:4px}
.auth-page{min-height:100svh;padding:26px;display:flex;flex-direction:column}
.auth-header{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:1440px;width:100%;margin:0 auto 24px}
.auth-logo{display:block;width:170px;height:44px;object-fit:contain}
.back-home{font-size:.8rem;font-weight:700;text-decoration:none;display:flex;gap:10px;align-items:center}
.back-home:hover{color:var(--coral)}
.auth-shell{width:100%;max-width:1440px;margin:auto;display:grid;grid-template-columns:1.05fr 1fr;gap:0;flex:1;border:1px solid #242b2525;border-radius:28px;overflow:hidden;background:#fffef9;min-height:660px}
.auth-story{background:#e9e5f4;padding:42px 46px 28px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
.auth-story::before{content:'';position:absolute;inset:0;background-image:radial-gradient(#9184aa45 .8px,transparent .8px);background-size:23px 23px;pointer-events:none}
.story-content{position:relative;z-index:1}
.story-eyebrow{display:flex;align-items:center;gap:8px;font-size:.65rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;margin-bottom:20px}
.story-eyebrow::before{content:'';background:var(--coral);width:8px;height:8px;border-radius:50%}
.auth-story h1{font-family:'Outfit',sans-serif;font-size:clamp(2.8rem,4.6vw,4.9rem);font-weight:800;line-height:1.02;letter-spacing:-.045em;max-width:500px;margin:0}
.auth-story h1 em{font-style:normal;color:var(--coral)}
.story-intro{font-size:.9rem;line-height:1.8;color:#60635e;max-width:370px;margin-top:20px}
.illustration-stage{position:relative;width:100%;max-width:420px;margin:0 auto;min-height:280px;display:grid;place-items:center}
.illustration-stage::before{content:'';position:absolute;inset:20px 35px 0;background:#f8f6e8;border-radius:48% 52% 46% 54%;rotate:-8deg}
.auth-mascot{position:relative;width:290px;max-width:85%;height:auto;z-index:1;animation:gentle-bob 7s ease-in-out infinite}
.auth-doodle{position:absolute;z-index:2;display:grid;place-items:center;font-family:'Outfit',sans-serif;font-weight:800;animation:gentle-bob 5s ease-in-out infinite}
.doodle-plus{top:16px;right:9px;background:var(--lime);width:65px;height:65px;border:2px solid var(--ink);border-radius:18px;rotate:13deg;font-size:2.8rem;box-shadow:3px 3px 0 var(--ink)}
.doodle-pi{left:6px;bottom:40px;background:var(--coral);color:white;width:57px;height:57px;border-radius:50%;font-size:2.5rem;rotate:-13deg;animation-delay:-2s}
.story-stamp{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #242b2525;padding-top:20px;margin-top:15px}
.story-stamp p{font-size:.72rem;line-height:1.7;margin:0;max-width:185px}
.member-help{background:transparent;border:1px solid #242b2560;border-radius:30px;padding:9px 14px;font-size:.7rem;font-weight:700;white-space:nowrap;transition:background .2s}
.member-help:hover{background:#faf9f2}
.auth-form-side{padding:44px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.auth-form-wrap{width:100%;max-width:390px;animation:welcome-in .6s ease both}
.welcome-badge{display:inline-flex;align-items:center;gap:7px;background:#eaf0dc;border-radius:7px;padding:7px 10px;font-size:.65rem;font-weight:800;letter-spacing:.07em;margin-bottom:21px}
.welcome-badge b{color:#61763f}
.auth-form-side h2{font-family:'Outfit',sans-serif;font-size:3rem;font-weight:800;letter-spacing:-.045em;margin:0 0 12px;line-height:1.05}
.auth-form-intro{color:#70756b;font-size:.85rem;line-height:1.8;margin:0 0 30px}
.auth-field{margin-bottom:21px}
.auth-form-side label,.modal label{display:block;font-weight:700;font-size:.78rem;color:var(--ink);margin-bottom:8px}
.auth-form-side input:not([type=checkbox]),.modal input:not([type=checkbox]):not([type=hidden]){display:block;width:100%;border:1px solid #d4d9cb;border-radius:12px;background:#fafbf6;padding:14px 16px;font-size:.88rem;color:var(--ink);box-shadow:none;transition:border-color .2s,box-shadow .2s}
.auth-form-side input:not([type=checkbox]):focus,.modal input:not([type=checkbox]):focus{outline:none;border-color:#708543;box-shadow:0 0 0 3px #bfd68a40;background:#fff}
.auth-options{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:3px 0 26px;font-size:.73rem}
.auth-options label{display:flex;align-items:center;gap:8px;margin:0;font-weight:500;font-size:.73rem;cursor:pointer}
.auth-options input{accent-color:#647744;width:15px;height:15px}
.auth-options a{font-weight:700}
.auth-submit{display:flex;align-items:center;justify-content:space-between;width:100%;border:2px solid var(--ink);background:var(--coral);color:#fff;border-radius:12px;padding:14px 20px;box-shadow:4px 4px 0 var(--ink);font-weight:800;font-size:.9rem;transition:transform .2s,box-shadow .2s}
.auth-submit:hover{background:#cd3d24;transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink)}
.auth-submit b{font-size:1.2rem}
.register-divider{display:flex;align-items:center;gap:15px;margin:28px 0 20px;font-size:.68rem;color:#7b8075}
.register-divider::before,.register-divider::after{content:'';height:1px;background:#e1e5d8;flex:1}
.register-launch{display:block;width:100%;border:1px solid #242b2540;background:transparent;border-radius:12px;padding:13px;font-weight:700;font-size:.83rem;transition:background .2s}
.register-launch:hover{background:#edf2df}
.auth-smallprint{text-align:center;font-size:.68rem;color:#7c8175;line-height:1.8;margin:23px 0 0}
.auth-footer{max-width:1440px;width:100%;margin:20px auto 0;display:flex;justify-content:space-between;gap:15px;font-size:.66rem;color:#777e6e}
.auth-status{padding:12px 15px;background:#eaf0dc;border:1px solid #bfce9b;border-radius:10px;font-size:.8rem;margin-bottom:20px}
.alert-danger{border-radius:12px;font-size:.8rem;line-height:1.7}
.modal-content{border:2px solid var(--ink);border-radius:20px;box-shadow:7px 7px 0 #242b2555;background:#fffef9}
.modal-header{padding:21px 25px;background:#e9e5f4;border-radius:18px 18px 0 0;border-bottom:1px solid #242b2520}
.modal-title{font-family:'Outfit',sans-serif;font-weight:700;letter-spacing:-.02em}
.modal-body{padding:25px}.modal-body form>.flex{display:flex;align-items:center;justify-content:space-between;gap:15px}
.modal-body button[type=submit]{padding:11px 22px;background:var(--ink);color:#fff;border:0;border-radius:10px;font-size:.8rem;font-weight:700}
.modal-body ul{padding-left:20px;line-height:1.9}.modal-body a{font-size:.8rem}.modal-body .flex.items-center{display:flex;align-items:center}
@keyframes gentle-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes welcome-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.auth-shell{max-height:850px}}
@media(max-width:991px){.auth-story{padding:30px}.auth-form-side{padding:32px}.auth-story h1{font-size:3.2rem}.story-stamp{flex-direction:column;align-items:start;gap:10px}.auth-mascot{width:245px}.illustration-stage{min-height:265px}}
@media(max-width:767px){.auth-page{padding:17px}.auth-header{margin-bottom:18px}.auth-logo{width:135px;height:36px}.back-home{font-size:.7rem}.auth-shell{grid-template-columns:1fr;border-radius:20px;min-height:auto}.auth-story{padding:25px}.auth-story h1{font-size:2.6rem;max-width:100%}.story-eyebrow{margin-bottom:15px;font-size:.57rem}.story-intro{margin:14px 0 0;max-width:100%;font-size:.8rem}.illustration-stage{display:none}.story-stamp{flex-direction:row;align-items:center;margin-top:20px;padding-top:14px}.story-stamp p{font-size:.65rem}.member-help{font-size:.62rem;padding:8px 10px}.auth-form-side{padding:30px 24px}.auth-form-side h2{font-size:2.5rem}.auth-form-intro{margin-bottom:25px}.welcome-badge{margin-bottom:16px}.auth-footer{font-size:.6rem;flex-wrap:wrap}.modal-dialog{margin:15px}.auth-options{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
