
    :root {
      --bg: #0c141b;
      --card: #111922;
      --card-deep: #0f171f;
      --ink: #f6fcfb;
      --muted: #8b999f;
      --teal: #5cd4b0;
      --green: #56bb7f;
      --line: rgba(116, 201, 182, .27);
      --glow: rgba(64, 226, 184, .50);
      --pad: 36px;
    }
    * { box-sizing: border-box; }
    html { min-height: 100%; }
    body {
      margin: 0;
      min-height: 100vh;
      min-height: 100dvh;
      overflow-x: hidden;
      font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      color: var(--ink);
      background: radial-gradient(ellipse 74% 58% at 51% 47%, #101d24 0%, #0d161e 60%, transparent 100%),
                  radial-gradient(ellipse 83% 53% at 67% 102%, #1a1421 0%, transparent 72%),
                  #0b131b;
      isolation: isolate;
    }
    body::after { content:""; pointer-events:none;position:fixed;inset:0;z-index:-1;
      background: linear-gradient(120deg, transparent 18%, rgba(44,94,78,.017) 49%,transparent 82%);
    }
    .topbar {
      position: relative; z-index: 5; display:flex; justify-content:space-between; align-items:center;
      width:min(1200px,calc(100% - 76px)); margin-inline:auto; min-height:97px;
    }
    .brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
    .brand-mark { height:35px; width:35px; display:grid; place-items:center; border:1px solid rgba(97,205,168,.45);
      background:linear-gradient(145deg,rgba(73,170,132,.13),rgba(24,60,54,.06));border-radius:11px;
      box-shadow:inset 0 0 18px rgba(65,188,137,.04); }
    .brand-mark svg { width:21px;height:21px; }
    .brand-text { font-size:14px; line-height:1; font-weight:810; letter-spacing:.17em; }
    .brand-text strong { color:#6ddcaa; font-weight:810; }
    .brand-caption {display:block;color:#82919a; font-size:9px; font-weight:640; letter-spacing:.24em; margin-top:7px;}
    .demo-pill { display:flex;align-items:center; gap:9px; font-size:10px;font-weight:710;letter-spacing:.20em;
      color:#a1afb0; padding:11px 14px; border:1px solid rgba(142,186,176,.12);border-radius:999px;background:rgba(22,37,42,.45); }
    .demo-pill .dot { background:#71dca5; box-shadow: 0 0 11px rgba(113,220,165,.66); width:6px;height:6px;border-radius:50%; }

    .main { min-height:calc(100dvh - 97px - 65px);display:grid;place-items:center;padding:32px 24px 24px; }
    .scene { width:min(750px,100%);min-height:470px; display:flex;align-items:center;justify-content:center;gap:25px;position:relative; }
    .lamp-area { position:relative; width:275px;height:370px; flex: 0 0 275px; display:grid;place-items:center; }
    .lamp-aura { position:absolute;inset:24% 7% 1%;background:radial-gradient(ellipse at 50% 61%,rgba(159,236,190,.10),rgba(79,158,121,.02) 50%,transparent 75%);
      filter:blur(13px);opacity:1;transition:opacity .48s;pointer-events:none; }
    .lamp-btn { position:absolute;inset:0;display:grid;place-items:center;border:0;background:transparent;cursor:pointer;padding:0;touch-action:manipulation; }
    .lamp-btn:focus-visible {outline: 2px solid #77efce;outline-offset: -10px;border-radius:24px;}
    .lamp-svg { width:100%;max-width:275px;height:auto;overflow:visible;filter:drop-shadow(0 10px 8px rgba(0,0,0,.16)); }
    .beam { opacity:.88;transform-origin:145px 159px;transition:opacity .31s ease,transform .55s ease; }
    .shade-group { transform-origin:145px 160px; transition:filter .44s ease; }
    .shade-lit { opacity:1;transition:opacity .38s ease; }
    .shade-dark { opacity:0; transition:opacity .38s ease; }
    .bulb { opacity:1;transition:opacity .28s ease; }
    .face {opacity:1;transition:opacity .24s ease;}
    .face-sleep { opacity:0;transition:opacity .24s ease; }
    .cord {transform-origin:102px 158px;transform-box:view-box;}
    .lamp-btn.pulling .cord { animation: cordPull .68s cubic-bezier(.2,.72,.3,1); }
    .lamp-btn.pulling .shade-group {animation: shadeNod .68s ease;}
    @keyframes cordPull {0%{transform:rotate(0)}18%{transform:rotate(12deg) translateY(8px)}40%{transform:rotate(-9deg) translateY(11px)}68%{transform:rotate(5deg) translateY(3px)}100%{transform:rotate(0)}}
    @keyframes shadeNod {0%,100%{transform:rotate(0)}35%{transform:rotate(-2deg)}65%{transform:rotate(1deg)}}
    .lamp-caption { color:rgba(134,170,159,.74);position:absolute;top:95%;left:50%;width:max-content;transform:translateX(-50%);
      display:flex;gap:6px;align-items:center;letter-spacing:.04em;font-size:11px;transition:opacity .4s; }
    .lamp-caption svg {width:13px;height:13px;opacity:.7;}
    .lamp-btn:hover + .lamp-caption, .lamp-btn:focus-visible + .lamp-caption {color:#b1e3d1;}
    .lamp-btn:hover .shade-group {filter:brightness(1.08);}

    .login-card { position:relative;flex:0 0 360px; width:360px; min-height:439px;padding:38px 35px 28px;
      border:1px solid rgba(92,219,188,.68); border-radius:19px;
      background: linear-gradient(150deg,rgba(20,29,36,.98),rgba(12,20,29,.98));
      box-shadow:0 0 0 1px rgba(75,198,155,.075),0 0 17px rgba(65,224,172,.32),0 0 38px rgba(52,191,148,.12),inset 0 0 18px rgba(61,175,149,.023);
      opacity:1;transform:translate3d(0,0,0) scale(1);
      transition:opacity .48s cubic-bezier(.21,.82,.21,1),transform .55s cubic-bezier(.21,.82,.21,1),border-color .45s,box-shadow .45s;
      will-change:opacity,transform;
    }
    .login-card::before {content:"";position:absolute;inset:-1px;z-index:-1;pointer-events:none;border-radius:inherit;
      background: radial-gradient(ellipse 92% 66% at 100% 0%,rgba(70,200,158,.10),transparent); }
    .eyebrow { text-align:center; color:#78a998;letter-spacing:.23em;font-weight:750;font-size:9px;margin-bottom:13px; }
    h1 {margin:0 0 32px;text-align:center;color:#f5fffa;font-size:28px;font-weight:790;letter-spacing:-.045em;line-height:1.1;
      text-shadow:0 0 18px rgba(75,206,159,.18);}
    .input-group { margin-bottom:21px; }
    label.field-label { display:block;font-size:12px;letter-spacing:.005em;font-weight:620;color:#a8b1b5;margin-bottom:9px; }
    .field-wrap { display:flex;align-items:center;position:relative; }
    .text-field {width:100%;height:47px;padding:0 14px;border-radius:9px;outline:0;color:#e8f7f1;font-family:inherit;font-size:13px;
      background:rgba(255,255,255,.052);border:1px solid rgba(150,185,181,.17);
      box-shadow:inset 0 1px 2px rgba(0,0,0,.18);
      transition:background .22s,border-color .22s,box-shadow .22s; }
    .text-field::placeholder {color:#68767c;opacity:1;}
    .text-field:hover {border-color:rgba(119,205,172,.34);}
    .text-field:focus {background:rgba(255,255,255,.07);border-color:#55cba0;box-shadow:0 0 0 3px rgba(86,209,163,.105),0 0 16px rgba(91,202,155,.10); }
    .input-pwd {padding-right:45px;}
    .eye-btn {display:grid;place-items:center;position:absolute;right:8px;width:32px;height:33px;border:0;background:transparent;color:#839a96;
      cursor:pointer;border-radius:6px;transition:color .2s,background .2s; }
    .eye-btn:hover {color:#c2f2dd;background:rgba(121,214,176,.08);}
    .eye-btn svg {height:17px;width:17px;}
    .submit { margin-top:5px;border:1px solid rgba(128,244,198,.13);width:100%;height:48px;border-radius:9px;
      cursor:pointer;color:#f4fff8;font-family:inherit;font-size:14px;font-weight:710;letter-spacing:.01em;
      background:linear-gradient(112deg,#47aa8c 0%,#319d78 55%,#479c74 100%);
      box-shadow:0 5px 17px rgba(14,93,66,.13),inset 0 1px 0 rgba(236,255,245,.12);
      transition:transform .2s,filter .2s,box-shadow .2s;
      display:flex;align-items:center;justify-content:center;gap:8px; }
    .submit:hover {filter:brightness(1.1);box-shadow:0 7px 28px rgba(40,174,127,.24);transform:translateY(-1px);}
    .submit:active {transform:translateY(1px) scale(.99);}
    .submit:focus-visible,.forgot:focus-visible,.eye-btn:focus-visible {outline:2px solid #8af0c6;outline-offset:3px;}
    .submit[disabled] {opacity:.8;cursor:progress;}
    .spinner {width:13px;height:13px;border:2px solid rgba(255,255,255,.32);border-top-color:white;border-radius:50%;animation:spin .7s linear infinite;display:none;}
    .submit.loading .spinner {display:inline-block;}
    @keyframes spin {to {transform:rotate(360deg)}}
    .forgot {display:block;margin:23px auto 0;border:0;background:transparent;color:#75868e;font-size:12px;cursor:pointer;
      font-family:inherit;transition:color .2s,text-shadow .2s; }
    .forgot:hover {color:#a7efcc;text-shadow:0 0 11px rgba(78,228,178,.34);}
    .login-error {font-size:11px;line-height:1.45;color:#f2a49a;min-height:0;margin-top:0;text-align:center; }
    .login-error:not(:empty) {margin-top:14px;}

    .scene.is-off .login-card {opacity:0;transform:translate3d(0,16px,0) scale(.925);border-color:transparent;
      box-shadow:none;pointer-events:none;visibility:hidden;transition:opacity .35s,transform .50s,visibility 0s .5s,border-color .35s,box-shadow .35s;}
    .scene.is-off .beam,.scene.is-off .bulb {opacity:0;}
    .scene.is-off .lamp-aura {opacity:0;}
    .scene.is-off .shade-lit {opacity:0;}
    .scene.is-off .shade-dark {opacity:1;}
    .scene.is-off .face {opacity:0;}
    .scene.is-off .face-sleep {opacity:1;}
    .scene.is-off .lamp-caption {color:#818b90;}
    .scene.is-wink .eyes-open {opacity:0;}
    .scene.is-wink .eyes-wink {opacity:1;}
    .eyes-wink {opacity:0;transition:opacity .19s;}
    .eyes-open {transition:opacity .19s;}
    .scene.is-wink:not(.is-off) .face {opacity:1;}
    .scene.is-wink:not(.is-off) .face-sleep {opacity:0;}

    .foot { width:min(1200px,calc(100% - 76px));margin:0 auto;min-height:65px;display:flex;align-items:center;justify-content:space-between;
      gap:16px;font-size:10px;color:#6d8287;letter-spacing:.03em; }
    .foot b {color:#9aafa9;font-weight:600;}
    .foot-note {display:flex;gap:8px;align-items:center;}
    .foot-note span {width:5px;height:5px;background:#5caa86;border-radius:50%;opacity:.8;}
    .toast {position:fixed;bottom:25px;left:50%;transform:translate(-50%,18px);padding:13px 19px;
      max-width:min(440px,calc(100vw - 32px));z-index:50;border:1px solid rgba(89,206,160,.35);background:#172b2b;
      color:#e8fff0;border-radius:10px;font-size:12px;text-align:center;line-height:1.6;box-shadow:0 18px 45px rgba(0,0,0,.25);
      pointer-events:none;opacity:0;transition:opacity .3s,transform .3s; }
    .toast.show {transform:translate(-50%,0);opacity:1;}
    @media (max-width: 760px) {
      .topbar,.foot {width:calc(100% - 40px);}
      .scene {gap:0;min-height:460px;width:min(650px,100%);}
      .lamp-area {width:40%;flex-basis:40%;height:330px;}
      .lamp-svg {max-width:255px;}
      .login-card {width:60%;flex-basis:60%;min-height:415px;padding:33px 27px 26px;}
    }
    @media (max-width: 520px) {
      .topbar {width:calc(100% - 30px);min-height:77px;}
      .brand {gap:8px;}
      .brand-mark {width:29px;height:29px;border-radius:9px;}
      .brand-mark svg {width:18px;height:18px;}
      .brand-text {font-size:11px;letter-spacing:.09em;}
      .brand-caption {font-size:7px;letter-spacing:.14em;margin-top:5px;}
      .demo-pill {padding:8px 9px;font-size:8px;letter-spacing:.08em;gap:6px;}
      .main {min-height:calc(100dvh - 77px - 80px);padding:16px 8px;}
      .scene {width:100%;gap:0;min-height:370px;}
      .lamp-area {flex:0 0 35%;width:35%;height:265px;margin-right:-4px;}
      .lamp-svg {width:160%;max-width:none;position:relative;left: -7px;}
      .lamp-caption {font-size:8px;top:97%;}
      .lamp-caption svg {width:10px;height:10px;}
      .login-card {flex:1 1 auto;width:65%;min-width:0;min-height:355px;padding:25px 17px 22px;border-radius:14px;}
      .eyebrow {font-size:7px;letter-spacing:.18em;margin-bottom:10px;}
      h1 {font-size:21px;margin-bottom:24px;}
      .input-group {margin-bottom:17px;}
      label.field-label {font-size:10px;margin-bottom:7px;}
      .text-field {height:41px;font-size:11px;padding-inline:10px;border-radius:7px;}
      .input-pwd {padding-right:37px;}
      .eye-btn {right:4px;width:29px;height:30px;}
      .submit {height:43px;font-size:12px;}
      .forgot {font-size:10px;margin-top:17px;}
      .login-error {font-size:10px;}
      .foot {min-height:80px;width:calc(100% - 30px);align-items:center;text-align:center;flex-direction:column;justify-content:center;gap:8px;font-size:9px;}
    }
    @media (max-width: 360px) {
      .brand-text {font-size:10px;}
      .scene {min-height:340px;}
      .lamp-area {flex-basis:32%;width:32%;}
      .login-card {padding-inline:13px;min-height:345px;}
      h1 {font-size:19px;}
    }
    @media (prefers-reduced-motion: reduce) {
      *,*::before,*::after {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}
    }

    /* V4 — Dark studio edition: restrained glass, straight pull cord, dimensional tabletop */
    :root { color-scheme:dark; --bg:#090f17; --ink:#eefaf3; }
    body {
      background:
        radial-gradient(ellipse 48% 64% at 29% 56%,rgba(24,80,70,.25),transparent 75%),
        radial-gradient(ellipse 48% 66% at 92% 85%,rgba(24,40,64,.32),transparent 78%),
        linear-gradient(142deg,#0a1018 0%,#0d1720 52%,#090e16 100%);
    }
    body::after { background:linear-gradient(112deg,transparent 12%,rgba(135,242,192,.023) 45%,transparent 78%); }
    .topbar { border-bottom:1px solid rgba(148,219,190,.065); }
    .brand-mark {background:linear-gradient(145deg,rgba(57,126,103,.18),rgba(16,49,44,.11));}
    .brand-text strong { color:#78d6a9; }
    .demo-pill {background:rgba(15,29,37,.58);border-color:rgba(150,209,180,.15);}
    .scene::before {content:"";position:absolute;inset:8% auto 0 -13%;width:60%;pointer-events:none;z-index:-1;
      border-radius:50%;filter:blur(14px);
      background:radial-gradient(ellipse at center,rgba(28,91,76,.16),transparent 68%);}
    .lamp-area {isolation:isolate; z-index:1;}
    .lamp-aura {inset:16% 1% 5%;background:radial-gradient(ellipse at 48% 63%,rgba(133,230,183,.15),rgba(51,130,98,.04) 52%,transparent 75%);}
    .lamp-svg {filter:drop-shadow(0 14px 13px rgba(0,0,0,.30));}
    .beam {opacity:.9;}
    .shade-group {filter:drop-shadow(0 4px 4px rgba(2,14,14,.17));}
    .lamp-btn:hover .shade-group {filter:drop-shadow(0 4px 4px rgba(2,14,14,.17));}
    .cord {filter:drop-shadow(1px 2px 2px rgba(3,13,12,.24));}
    .cord-anchor {fill:#b9ccc5;stroke:#728c82;stroke-width:.7;}
    .cord-thread-shadow {stroke:#49645b;stroke-width:4;stroke-linecap:round;}
    .cord-thread {stroke:#d6e7d7;stroke-width:1.85;stroke-linecap:round;}
    .cord-thread-shine {stroke:#ffffff;stroke-opacity:.39;stroke-width:.55;stroke-linecap:round;}
    .pull-knob {filter:drop-shadow(0 4px 4px rgba(0,0,0,.27));}
    .pull-cap {fill:url(#knobMetal);stroke:#99a9a2;stroke-width:1;}
    .pull-ball {fill:url(#knobBall);stroke:#aebcb3;stroke-width:.8;}
    .pull-glint {fill:#fff;opacity:.65;}
    .cord-hit {cursor:grab;pointer-events:all;touch-action:none;}
    .cord.dragging .cord-hit {cursor:grabbing;}
    .desk-top {fill:url(#tableTopPaint);stroke:#53656a;stroke-width:.8;}
    .desk-edge {fill:url(#tableEdgePaint);}
    .desk-rim {stroke:#95aeb0;stroke-opacity:.46;stroke-width:1.4;}
    .desk-leg {fill:url(#tableLegPaint);}
    .desk-grain {stroke:#a8b7b2;stroke-width:.8;stroke-opacity:.12;fill:none;}
    .desk-light {opacity:.55;transition:opacity .48s ease;mix-blend-mode:screen;}
    .scene.is-off .desk-light {opacity:0;}
    .lamp-caption {font-weight:570;color:#a3bcb3;top:95%;font-size:11px;letter-spacing:.015em;}
    .scene.is-off .lamp-caption {color:#8a9c9c;}
    .login-card {z-index:2; background:linear-gradient(145deg,rgba(20,31,39,.97),rgba(12,23,33,.985));
      border-color:rgba(103,228,181,.70);
      box-shadow:0 0 0 1px rgba(75,198,155,.08),0 0 20px rgba(53,220,171,.24),0 22px 53px rgba(0,0,0,.24),inset 0 1px 0 rgba(198,255,230,.035);}
    .login-card::before {background:radial-gradient(ellipse 88% 64% at 96% 0%,rgba(60,174,127,.12),transparent);}
    .eyebrow {color:#85bba8;}
    h1 {text-shadow:none;}
    .text-field {background:rgba(255,255,255,.045);}
    .scene.is-off .login-card {box-shadow:none;}
    @media (max-width:760px) { .lamp-area {z-index:1;} .login-card {z-index:2;} }
    @media (max-width:520px) {
      .lamp-caption {top:97%;left:6px;transform:none;width:126px;max-width:calc(100vw * .33);
        justify-content:center;text-align:center;line-height:1.4;white-space:normal;gap:3px;font-size:8px;}
      .lamp-caption svg {display:none;}
      .scene::before {left:-9%;width:65%;}
    }

    /* V5 — real study desk set and animated books */
    html {color-scheme:dark;}
    .main {padding:16px 24px 38px;min-height:calc(100dvh - 97px - 65px);}
    .scene {width:min(1140px,100%);min-height:570px;display:grid;grid-template-columns:minmax(0,600px) minmax(340px,380px);gap:30px;justify-content:center;align-items:center;}
    .scene::before {width:65%;inset:0 auto 1% -6%;background:radial-gradient(ellipse at 50% 55%,rgba(38,84,73,.2),transparent 75%);}
    .lamp-area {width:100%;height:auto;aspect-ratio:560/520;position:relative;display:block;min-width:0;flex:initial;isolation:isolate;}
    .study-set {position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:0;filter:drop-shadow(0 22px 34px rgba(0,0,0,.24));}
    .lamp-aura {z-index:1;inset:16% 0 14% 39%;background:radial-gradient(ellipse at center,rgba(255,238,171,.25),rgba(93,206,150,.09) 48%,transparent 75%);filter:blur(24px);opacity:.9;}
    .lamp-btn {inset:0;z-index:2;cursor:default;touch-action:none;pointer-events:none;}
    .lamp-btn:focus-visible {outline:none;}
    .lamp-svg {position:absolute;left:40.7%;top:15.2%;width:49%;height:auto;max-width:none;touch-action:none;filter:drop-shadow(0 10px 8px rgba(0,0,0,.25));pointer-events:none;}
    .lamp-svg #cordHandle,.lamp-svg #cordHit {pointer-events:all;touch-action:none;}
    .cord-hit {touch-action:none;cursor:grab;}
    .lamp-caption {z-index:3;top:auto;bottom:1%;left:50%;transform:translateX(-50%);width:100%;display:flex;justify-content:center;pointer-events:none;color:#c4d6c4;font-size:12px;}
    .login-card {position:relative;z-index:3;flex:initial;width:100%;min-height:444px;margin:0;border-radius:20px;background:linear-gradient(154deg,rgba(21,34,40,.95),rgba(11,23,31,.97));backdrop-filter:blur(16px);box-shadow:0 0 0 1px rgba(75,198,155,.07),0 0 20px rgba(53,220,171,.20),0 24px 56px rgba(0,0,0,.3);}
    .off-intro {position:absolute;right:12px;top:50%;width:min(370px,36%);transform:translateY(-50%);z-index:1;padding:0 20px 0 0;opacity:0;visibility:hidden;transition:opacity .6s ease,transform .6s ease,visibility .6s;pointer-events:none;}
    .scene.is-off .off-intro {opacity:1;visibility:visible;transform:translateY(-48%);}
    .off-kicker {font-size:10px;letter-spacing:.26em;color:#69c7a4;font-weight:760;}
    .off-intro p {font-size:clamp(23px,3vw,38px);line-height:1.18;letter-spacing:-.055em;color:#edf6f2;font-weight:720;margin:17px 0 16px;}
    .off-intro em {font-style:normal;color:#85c5a7;}
    .off-sub {color:#9eaeb0;font-size:12px;line-height:1.7;}
    .shelf-book {transform-box:fill-box;transform-origin:center bottom;}
    .scene:not(.is-off) .shelf-book-feature {animation:bookPeek 8.5s ease-in-out infinite;animation-delay:var(--delay);}
    .scene:not(.is-off) .book-turn-page {transform-box:view-box;transform-origin:176px 366px;animation:flipPage 7.5s cubic-bezier(.52,.08,.45,.94) infinite;}
    .scene:not(.is-off) .stacked-books {transform-box:fill-box;transform-origin:center bottom;animation:stackBreath 7s ease-in-out infinite;}
    .table-light {opacity:0;transition:opacity .48s ease;}
    .scene:not(.is-off) .table-light {opacity:1;}
    .ambient-sparkles {opacity:0;transition:opacity .4s;}
    .scene:not(.is-off) .ambient-sparkles {opacity:.58;animation:shimmer 5s ease-in-out infinite;}
    .study-set .shelf-set {filter:drop-shadow(0 5px 4px rgba(0,0,0,.28));animation:shelfArrive 1.1s cubic-bezier(.22,.75,.3,1) both;}
    .scene:not(.is-off) .study-set .shelf-set {animation:shelfGlimmer 7.5s ease-in-out infinite;}
    .scene:not(.is-off) .study-set {filter:drop-shadow(0 22px 34px rgba(0,0,0,.25)) brightness(1.09);}
    .scene.is-off .study-set {filter:drop-shadow(0 22px 34px rgba(0,0,0,.28)) brightness(.79);}
    .study-set {transition:filter .48s;}
    .scene.is-off .lamp-aura {opacity:0;}
    .scene.is-off .login-card {opacity:0;transform:translate3d(12px,16px,0) scale(.95);}
    @keyframes shelfArrive {from {opacity:.45;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)}}
    @keyframes shelfGlimmer {0%,100%{filter:drop-shadow(0 5px 4px rgba(0,0,0,.28)) brightness(1)}50%{filter:drop-shadow(0 7px 5px rgba(0,0,0,.3)) brightness(1.12)}}
    @keyframes flipPage {0%,17%,74%,100% {transform:scaleX(1) rotate(0deg);}32%,52% {transform:scaleX(-.83) rotate(-2deg);}64% {transform:scaleX(.9) rotate(1deg);}}
    @keyframes bookPeek {0%,19%,44%,100% {transform:translateY(0) rotate(0);}26% {transform:translateY(-6px) rotate(-1.5deg);}34% {transform:translateY(-3px) rotate(.9deg);}}
    @keyframes stackBreath {0%,70%,100% {transform:translateY(0)}78% {transform:translateY(-2px)}89% {transform:translateY(-.5px)}}
    @keyframes shimmer {0%,100%{opacity:.25;}50%{opacity:.8;}}
    @media(max-width:950px){
      .scene{grid-template-columns:minmax(0,520px) minmax(315px,360px);gap:6px;min-height:525px;}
      .login-card {padding:36px 30px 26px;min-height:434px;}
      .off-intro {width:38%;right:0;padding-right:6px;}
    }
    @media(max-width:740px){
      .main {padding:0 14px 32px;}
      .scene {width:min(590px,100%);display:flex;flex-direction:column;gap:6px;min-height:auto;padding:8px 0 18px;}
      .lamp-area {width:100%;max-width:560px;flex:none;height:auto;margin:0;}
      .lamp-svg{width:49%;left:40.7%;top:15.2%;max-width:none;}
      .lamp-caption {top:auto;bottom:0;left:50%;transform:translateX(-50%);width:100%;font-size:11px;}
      .login-card{width:min(420px,calc(100% - 24px));min-height:410px;flex:none;opacity:1;}
      .off-intro {position:relative;top:auto;right:auto;width:100%;padding:4px 8px 24px;transform:none;text-align:center;display:none;}
      .scene.is-off .off-intro {display:block;transform:none;}
      .off-intro p {font-size:28px;margin:10px 0 7px;}
      .scene.is-off .login-card {display:none;}
    }
    @media(max-width:420px){
      .topbar {width:calc(100% - 30px);min-height:76px;}
      .scene {gap:4px;}
      .lamp-caption {font-size:10px;bottom:-2px;max-width:none;text-align:center;}
      .lamp-caption svg {display:block;width:13px;height:13px;}
      .login-card {min-height:390px;padding:29px 25px 25px;}
      h1 {font-size:26px;margin-bottom:27px;}
      label.field-label{font-size:12px;}
      .text-field{height:45px;font-size:13px;}
      .input-group{margin-bottom:20px;}
      .submit{height:46px;font-size:13px;}
      .foot{padding:4px 0 14px;}
    }
    @media(prefers-reduced-motion:reduce){
      .scene:not(.is-off) .book-turn-page,.scene:not(.is-off) .shelf-book-feature,.scene:not(.is-off) .stacked-books,.scene:not(.is-off) .ambient-sparkles,.study-set .shelf-set{animation:none;}
    }


    /* V6 — cinematic study design: proportional composition and refined microinteractions. */
    :root { --gold:#d2af79; --mint:#83e8ae; }
    html,body {color-scheme:dark;}
    body {
      background: radial-gradient(ellipse 40% 66% at 20% 42%,rgba(25,83,62,.25),transparent 78%),
       radial-gradient(ellipse 38% 66% at 86% 64%,rgba(17,68,49,.20),transparent 75%),
       repeating-linear-gradient(90deg,rgba(253,217,159,.012) 0 2px,transparent 2px 125px),
       linear-gradient(135deg,#08100f 0%,#101d1b 44%,#080e10 100%);
    }
    body::before {content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.31;
      background:radial-gradient(ellipse at 50% 120%,rgba(191,131,63,.22),transparent 50%);}
    .topbar {width:min(1220px,calc(100% - 62px));min-height:90px;}
    .main {min-height:calc(100dvh - 90px - 56px);padding:20px 24px 26px;}
    .scene {width:min(1220px,100%);grid-template-columns:minmax(0,680px) minmax(345px,395px);gap:clamp(18px,3vw,48px);min-height:594px;align-items:center;}
    .lamp-area {width:100%;max-width:680px;aspect-ratio:560/520;align-self:center;}
    .study-set {border-radius:24px;filter:drop-shadow(0 30px 46px rgba(0,0,0,.28));}
    .scene.is-off .study-set {filter:drop-shadow(0 30px 44px rgba(0,0,0,.3)) brightness(.79);}
    .scene:not(.is-off) .study-set {filter:drop-shadow(0 30px 46px rgba(0,0,0,.3)) brightness(1.12);}
    .scene:not(.is-off) .lamp-aura {opacity:1;}
    .lamp-aura {inset:25% 0 13% 35%;filter:blur(21px);
      background:radial-gradient(ellipse at 55% 55%,rgba(255,205,119,.34),rgba(241,182,91,.08) 49%,transparent 77%);}
    .lamp-caption {display:none !important;}
    .lamp-svg {width:47%;left:39.3%;top:16%;}
    .desk-set {filter:drop-shadow(0 4px 5px rgba(0,0,0,.19));}
    .book-magic {opacity:0;transition:opacity .9s ease;pointer-events:none;filter:drop-shadow(0 0 5px rgba(220,243,173,.38));}
    .scene:not(.is-off) .book-magic {opacity:1;}

    .floating-page {transform-box:fill-box;transform-origin:center;animation:floatPaper 5s ease-in-out infinite;}
    .pg-two {animation-delay:-2.3s;animation-duration:6.3s;}
    .magic-dot {animation:glitter 3s ease-in-out infinite;}
    .d2 {animation-delay:-.9s;}.d3 {animation-delay:-1.7s;}
    @keyframes floatPaper {0%,100%{transform:translate(0,1px) rotate(-2deg)}50%{transform:translate(4px,-8px) rotate(6deg)}}

    @keyframes glitter {0%,100%{opacity:.15;transform:scale(.75)}50%{opacity:1;transform:scale(1.3)}}
    /* On hover the book reacts; click triggers a deliberate page turn. */
    .open-book {cursor:pointer;touch-action:manipulation;}
    .open-book:hover {filter:drop-shadow(0 0 5px rgba(255,218,153,.55));}
    .open-book.book-flip .book-turn-page {animation:pageQuick .85s cubic-bezier(.34,.05,.2,1) 1!important;}
    @keyframes pageQuick {0%,100%{transform:scaleX(1) rotate(0)}55%{transform:scaleX(-.88) rotate(-3deg)}}
    .login-card {padding:30px 34px 26px;min-height:460px;border-radius:24px;border-color:rgba(130,232,171,.6);
      background:linear-gradient(148deg,rgba(12,32,26,.96),rgba(8,23,25,.965));
      box-shadow:0 0 0 1px rgba(84,223,139,.05),0 0 26px rgba(55,224,126,.15),0 25px 57px rgba(0,0,0,.34);
      transition:opacity .55s cubic-bezier(.2,.8,.2,1),transform .66s cubic-bezier(.2,.9,.25,1),visibility .55s,box-shadow .5s;}
    .login-card::after {content:"";position:absolute;inset:9px;border:1px solid rgba(169,255,185,.065);border-radius:17px;pointer-events:none;}
    .login-emblem {display:flex;justify-content:center;height:48px;margin-bottom:7px;filter:drop-shadow(0 0 6px rgba(110,241,148,.23));}
    .login-emblem svg {height:48px;}
    .eyebrow {font-size:9px;margin-bottom:9px;color:#a5d1ac;letter-spacing:.25em;}
    h1 {font-family:Georgia,'Times New Roman',serif;letter-spacing:-.04em;font-weight:600;font-size:30px;margin:0 0 5px;color:#f4f6e9;}
    .card-subtitle {margin:0 0 27px;text-align:center;color:#90aaa0;font-size:12px;letter-spacing:.01em;}
    .input-group {margin-bottom:16px;}
    label.field-label {color:#bdd0c5;font-size:11px;margin-bottom:8px;}
    .text-field {height:46px;border-radius:11px;border-color:rgba(139,208,162,.21);background:rgba(255,255,255,.034);font-size:13px;}
    .text-field:hover {border-color:rgba(145,248,177,.43);}
    .text-field:focus {border-color:#7de1a0;box-shadow:0 0 0 3px rgba(76,210,121,.11),0 0 23px rgba(76,210,121,.065);}
    .login-options {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 18px;font-size:10px;color:#96b4a4;}
    .remember-label {display:flex;align-items:center;gap:7px;cursor:pointer;}
    .remember-label input {accent-color:#49b77d;width:15px;height:15px;margin:0;}
    .secure-note {font-size:9px;letter-spacing:.08em;color:#658e75;}
    .submit {margin:0;background:linear-gradient(110deg,#27834f 0%,#35ad6b 46%,#1d8450 100%);border:1px solid rgba(184,255,177,.35);border-radius:12px;height:48px;font-size:13px;box-shadow:0 7px 25px rgba(29,193,91,.17),inset 0 1px 0 rgba(232,255,226,.26);}
    .submit:hover {box-shadow:0 11px 31px rgba(29,193,91,.27);transform:translateY(-2px);}
    .forgot {margin-top:18px;color:#87aa99;font-size:11px;}
    .off-intro {width:36%;right:1%;}
    .off-intro p {font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.035em;font-size:36px;}
    .off-kicker {color:#e2bc79;}
    .scene.is-off .login-card {transform:translate3d(10px,19px,0) scale(.95);}
    .foot {min-height:56px;width:min(1220px,calc(100% - 62px));}
    @media (max-width: 990px) and (min-width:741px) {
      .scene {grid-template-columns:minmax(0,1.1fr) minmax(310px,.88fr);gap:12px;min-height:500px;}
      .login-card {min-height:445px;padding:26px 24px;}
      .login-emblem{margin-bottom:5px;}.card-subtitle {margin-bottom:20px;}
      .off-intro {right:0;padding-right:0;width:41%;}.off-intro p{font-size:29px;}
    }
    @media (max-width:740px){
      .topbar {width:calc(100% - 32px);min-height:74px;}
      .main {padding:8px 10px 24px;min-height:calc(100dvh - 74px - 70px);}
      .scene {min-height:auto;display:flex;flex-direction:column;gap:8px;width:min(540px,100%);align-items:center;}
      .lamp-area {width:100%;max-width:520px;aspect-ratio:560/520;}
      .lamp-svg {width:47%;left:39.3%;top:16%;}
      .login-card {width:min(410px,calc(100% - 26px));min-height:445px;flex:none;padding:27px 27px 23px;}
      .scene.is-off .login-card {display:none;}
      .off-intro {width:100%;max-width:380px;margin:auto;display:none;position:relative;transform:none;text-align:center;padding:0 16px 28px;}
      .scene.is-off .off-intro {display:block;transform:none;}
      .off-intro p {font-size:26px;margin:12px 0 9px;}
      .lamp-caption {bottom:0;font-size:11px;}
      .foot {width:calc(100% - 30px);justify-content:center;text-align:center;flex-wrap:wrap;}
    }
    @media (max-width:420px){
      .scene {gap:6px;}
      .login-card {min-height:424px;padding:26px 24px;}
      .login-emblem {height:40px;}.login-emblem svg{height:40px;}
      h1 {font-size:28px;}.card-subtitle{font-size:11px;margin-bottom:21px;}
      .lamp-caption {bottom:-4px;font-size:10px;}
      .submit {height:46px;}
    }
    @media (prefers-reduced-motion:reduce){
      .floating-page,.magic-dot,.open-book.book-flip .book-turn-page{animation:none!important;}
    }


    /* Logo asli Mustika Record (bentuk asli dipertahankan; warna krem agar cocok dengan background gelap). */
    .official-logo {display:block;object-fit:contain;object-position:center;max-width:100%;height:auto;filter:drop-shadow(0 2px 9px rgba(235,186,112,.12));}
    .brand {gap:0;}
    .official-logo-header {width:184px;max-height:68px;}
    .login-emblem {height:80px;margin-bottom:10px;align-items:center;filter:none;}
    .official-logo-card {width:min(100%,275px);height:76px;}
    .login-card h1 {margin-top:2px;}
    .card-subtitle {margin-bottom:21px;}
    @media(max-width:950px){
      .official-logo-header {width:168px;}
      .login-emblem {height:72px;}
      .official-logo-card {height:69px;width:min(100%,245px);}
    }
    @media(max-width:740px){
      .official-logo-header {width:148px;max-height:54px;}
      .login-emblem {height:68px;}
      .official-logo-card {height:64px;width:min(100%,238px);}
    }
    @media(max-width:420px){
      .official-logo-header {width:132px;max-height:48px;}
      .login-emblem {height:62px;margin-bottom:7px;}
      .official-logo-card {height:59px;width:min(100%,220px);}
      .card-subtitle {margin-bottom:18px;}
    }

/* Final responsive polish: desktop, tablet, compact Android, and iOS Safari. */
html { color-scheme:dark; scroll-behavior:smooth; }
body { min-width:280px; width:100%; margin:0; overflow-x:hidden; -webkit-tap-highlight-color:transparent; }
.portal-label {display:flex;align-items:center;gap:8px;color:#9bbfae;font-size:10px;letter-spacing:.18em;font-weight:740;
  background:rgba(14,36,28,.68);border:1px solid rgba(111,203,157,.2);border-radius:999px;padding:10px 14px;white-space:nowrap;}
.portal-label svg {width:14px;height:14px;color:#84dba6;flex:none;}
.topbar {gap:12px;max-width:1220px;}
.brand {min-width:0;}
.official-logo-header {max-width:100%;object-fit:contain;}
.main {width:100%;}
.scene {max-width:1220px;min-width:0;}
.login-card {max-width:100%;min-width:0;scroll-margin-top:18px;}
.login-card, .login-card * {min-width:0;}
.login-card .official-logo {max-width:100%;}
.lamp-area {min-width:0;}
.cord-hit {touch-action:none;-webkit-user-select:none;user-select:none;}
#cordHandle {outline:none;touch-action:none;}
#cordHandle:focus-visible .pull-ball {stroke:#a7ffcd;stroke-width:3;}
.text-field,button {font-family:inherit;}
.text-field {min-width:0;max-width:100%;}
.submit,.forgot,.eye-btn {touch-action:manipulation;}
.login-error {max-width:100%;overflow-wrap:break-word;}
.off-intro .off-sub {overflow-wrap:break-word;}
.foot {padding-block:8px 12px;}
@media(max-width:1100px) and (min-width:961px){
 .scene {grid-template-columns:minmax(0,1.52fr) minmax(0,1fr);gap:22px;}
 .lamp-area {max-width:100%;}
 .login-card {padding:26px 26px 22px;min-height:0;}
 .official-logo-card {height:64px;}
}
@media(max-width:960px){
 .topbar {width:min(620px,calc(100% - 36px));min-height:72px;}
 .main {min-height:calc(100dvh - 135px);padding:14px 16px 25px;display:block;}
 .scene {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
    gap:12px;width:min(620px,100%);min-height:0;padding-bottom:6px;margin:auto;}
 .scene::before {left:0;width:100%;inset:0 auto 0 0;}
 .lamp-area {width:100%;height:auto;max-width:560px;aspect-ratio:560/520;flex:0 0 auto;align-self:center;margin:0;}
 .lamp-svg {width:48%;left:39.3%;top:16%;max-width:none;}
 .login-card {width:min(440px,calc(100% - 16px));max-width:440px;flex:0 0 auto;
    min-height:0;padding:30px 29px 25px;border-radius:22px;}
 .off-intro {display:none;position:relative;inset:auto;top:auto;right:auto;transform:none;width:min(440px,100%);
    max-width:100%;text-align:center;padding:8px 10px 24px;margin:0 auto;}
 .scene.is-off .off-intro {display:block;opacity:1;visibility:visible;transform:none;}
 .scene.is-off .login-card {display:none;}
 .foot {width:min(620px,calc(100% - 36px));min-height:45px;flex-wrap:wrap;gap:8px;font-size:10px;}
 .official-logo-header {width:158px;max-height:58px;}
}
@media(max-width:600px){
 .topbar{width:calc(100% - 28px);min-height:67px;}
 .official-logo-header{width:clamp(116px,34vw,155px);max-height:53px;}
 .portal-label{font-size:9px;letter-spacing:.08em;padding:8px 10px;gap:5px;}
 .portal-label svg{width:12px;height:12px;}
 .main{padding:5px 10px 18px;min-height:calc(100dvh - 140px);}
 .scene{gap:6px;}
 .lamp-area{width:100%;max-width:500px;}
 .lamp-svg{width:53%;left:36.7%;top:15.8%;}
 .off-intro{padding:4px 12px 18px;}
 .off-intro p{font-size:clamp(23px,6.4vw,29px);margin:10px 0 9px;}
 .off-sub{font-size:12px;}
 .login-card{width:min(430px,calc(100% - 12px));padding:25px 24px 24px;min-height:0;border-radius:20px;}
 .login-emblem{height:62px;margin-bottom:6px;}
 .official-logo-card{height:58px;width:min(100%,218px);}
 .login-card h1{font-size:28px;margin:3px 0 5px;}
 .card-subtitle{font-size:12px;margin-bottom:18px;}
 .input-group{margin-bottom:15px;}
 .text-field{height:48px;font-size:16px!important;padding-inline:13px;}
 .input-pwd{padding-right:45px;}
 label.field-label{font-size:12px;margin-bottom:7px;}
 .eye-btn{width:39px;height:42px;right:5px;}
 .login-options{gap:9px;margin:3px 0 17px;}
 .remember-label,.secure-note{font-size:10px;}
 .submit{height:49px;font-size:14px;}
 .forgot{font-size:12px;min-height:40px;padding:10px 8px;margin:13px auto 0;}
 .foot{width:calc(100% - 28px);min-height:52px;text-align:center;justify-content:center;gap:5px;font-size:10px;}
}
@media(max-width:360px){
 .topbar{width:calc(100% - 18px);min-height:62px;}
 .official-logo-header{width:113px;}
 .portal-label{font-size:8px;padding:7px 7px;letter-spacing:.025em;}
 .main{padding:2px 6px 16px;}
 .login-card{width:calc(100% - 12px);padding:22px 17px 21px;}
 .login-options{gap:5px;}
 .secure-note{font-size:9px;}
 .login-card h1{font-size:26px;}
}
@media (max-height:680px) and (min-width:961px){
 .main{min-height:0;padding-block:12px;}
 .scene{min-height:0;}
 .login-card{min-height:0;}
}
@media (orientation:landscape) and (max-height:500px) and (max-width:960px){
 .main{padding-top:4px;}
 .scene{width:min(540px,100%);}
 .lamp-area{max-width:500px;}
}
@supports(padding:max(0px)){
 .topbar{padding-top:env(safe-area-inset-top,0px);}
 .main{padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px));}
 .foot{padding-bottom:max(12px,env(safe-area-inset-bottom,0px));}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
  
/* Brand mark sourced from the user's existing mustikarecord.com backup. */
.official-logo {filter:brightness(0) saturate(100%) invert(91%) sepia(14%) saturate(571%) hue-rotate(341deg) brightness(102%) contrast(95%) drop-shadow(0 2px 7px rgba(241,202,139,.12));}
/* Server-side errors must remain visible even when animation initializes. */
.login-error:empty{display:none}
.login-error:not(:empty){display:block}
/* Make selection and touch controls predictable on WebKit, Chromium and Gecko. */
.text-field,button,input { -webkit-tap-highlight-color:transparent; }
@media (max-width: 600px){.text-field{font-size:16px;}}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto!important;}}
