/* KARYAKU Auth UI v1.5.4 — fully isolated auth surface */
:root{
  --kya-bg:#eef3f9;--kya-card:#fff;--kya-ink:#10243d;--kya-muted:#738398;--kya-soft:#9aa7b6;
  --kya-line:#dce5ef;--kya-line2:#e9eff5;--kya-primary:#2f75f4;--kya-primary2:#245fda;
  --kya-navy:#071a34;--kya-navy2:#0b2a50;--kya-green:#22b979;--kya-shadow:0 24px 60px rgba(18,41,70,.13);
  --kya-ease:cubic-bezier(.2,.75,.25,1)
}
*{box-sizing:border-box}
html{margin:0;background:var(--kya-bg);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.ky-auth-page{margin:0;min-width:320px;min-height:100vh;min-height:100svh;overflow-x:hidden;background:var(--kya-bg);color:var(--kya-ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.5}
body.ky-auth-page a{color:inherit;text-decoration:none}
body.ky-auth-page button,body.ky-auth-page input{font:inherit}
body.ky-auth-page svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ky-auth-shell{min-height:100vh;min-height:100svh;display:grid;grid-template-columns:minmax(420px,.95fr) minmax(470px,1.05fr);background:var(--kya-bg)}

.ky-auth-aside{position:relative;overflow:hidden;background:linear-gradient(145deg,#06162d 0%,#082343 54%,#0c2d53 100%);color:#fff}
.ky-auth-aside:before,.ky-auth-aside:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.ky-auth-aside:before{width:420px;height:420px;right:-180px;top:-120px;background:radial-gradient(circle,rgba(61,133,255,.21),rgba(61,133,255,0) 68%)}
.ky-auth-aside:after{width:520px;height:520px;left:-240px;bottom:-240px;background:radial-gradient(circle,rgba(77,94,255,.16),rgba(77,94,255,0) 68%)}
.ky-auth-aside-inner{position:relative;z-index:1;min-height:100%;display:flex;flex-direction:column;padding:44px clamp(34px,5vw,72px) 34px}
.ky-auth-aside-brand{display:inline-flex;align-items:center;gap:12px;width:max-content}
.ky-auth-brandmark{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#3f8cff,#4360f0);box-shadow:0 14px 32px rgba(33,91,223,.34);color:#fff;font-size:19px;font-weight:900;font-style:italic}
.ky-auth-aside-brand>span:last-child,.ky-auth-mobile-brand>span:last-child{display:flex;flex-direction:column;min-width:0}
.ky-auth-aside-brand strong{font-size:16px;font-weight:850;letter-spacing:.12em}.ky-auth-aside-brand small{margin-top:3px;color:#8da8c7;font-size:10px;font-weight:650}
.ky-auth-aside-copy{margin:auto 0 30px;max-width:610px}
.ky-auth-kicker{display:inline-flex;align-items:center;gap:8px;color:#7bb2ff;font-size:10px;font-weight:850;letter-spacing:.16em}.ky-auth-kicker i{width:7px;height:7px;border-radius:50%;background:#4da0ff;box-shadow:0 0 0 5px rgba(77,160,255,.1)}
.ky-auth-aside-copy h1{max-width:580px;margin:18px 0 14px;font-size:clamp(34px,4.2vw,58px);line-height:1.04;letter-spacing:-.045em;font-weight:800}.ky-auth-aside-copy p{max-width:560px;margin:0;color:#9bb0c8;font-size:14px;line-height:1.75}
.ky-auth-feature-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:28px}.ky-auth-feature-list article{min-width:0;padding:16px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.045)}.ky-auth-feature-list article>span{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:8px;background:rgba(70,145,255,.12);color:#7fb5ff;font-size:9px;font-weight:850}.ky-auth-feature-list strong,.ky-auth-feature-list small{display:block}.ky-auth-feature-list strong{margin-top:12px;font-size:11px}.ky-auth-feature-list small{margin-top:4px;color:#8ea6c0;font-size:9px;line-height:1.5}
.ky-auth-aside-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:30px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08);color:#849db8;font-size:9px;font-weight:650}.ky-auth-aside-footer span:first-child{display:inline-flex;align-items:center;gap:7px}.ky-auth-aside-footer i{width:7px;height:7px;border-radius:50%;background:var(--kya-green);box-shadow:0 0 0 5px rgba(34,185,121,.08)}

.ky-auth-main{min-width:0;display:flex;align-items:center;justify-content:center;padding:34px;background:linear-gradient(180deg,#f7f9fc 0%,#eef3f9 100%)}
.ky-auth-mobile-head,.ky-auth-mobile-intro{display:none}
.ky-auth-formwrap{width:min(510px,100%)}
.ky-auth-card{width:100%;margin:0;padding:30px;border:1px solid rgba(210,221,233,.95);border-radius:24px;background:rgba(255,255,255,.98);box-shadow:var(--kya-shadow)}
.ky-auth-cardhead{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:start;gap:15px;margin-bottom:24px}
.ky-auth-cardicon{width:52px;height:52px;display:grid;place-items:center;border:1px solid #dce8f5;border-radius:16px;background:linear-gradient(145deg,#f2f8ff,#edf4fb);color:#4a86df}.ky-auth-cardicon svg{width:25px;height:25px}
.ky-auth-badge{display:block;color:#397edc;font-size:9px;font-weight:900;letter-spacing:.16em}.ky-auth-card h2{margin:6px 0 5px;color:#10243d;font-size:26px;line-height:1.12;letter-spacing:-.035em;font-weight:800}.ky-auth-cardhead p{max-width:360px;margin:0;color:#8493a5;font-size:11px;line-height:1.55}
.ky-auth-alert{display:grid;gap:3px;margin:-4px 0 18px;padding:11px 12px;border:1px solid;border-radius:12px;font-size:10px}.ky-auth-alert strong{font-size:10px}.ky-auth-alert-warning{border-color:#f3d8a9;background:#fff8ec;color:#8a5a13}.ky-auth-alert-success{border-color:#bde7d4;background:#f0fbf6;color:#257553}.ky-auth-alert-danger{border-color:#f0c3c3;background:#fff4f4;color:#9f3e3e}
.ky-auth-field+.ky-auth-field{margin-top:17px}.ky-auth-labelrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.ky-auth-labelrow label{color:#334b65;font-size:11px;font-weight:800}.ky-auth-labelrow span{color:#9ca8b5;font-size:8.5px;font-weight:700}
.ky-auth-control{position:relative;min-width:0;height:54px;display:flex;align-items:center;border:1px solid #d7e1eb;border-radius:15px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease}.ky-auth-control:focus-within{border-color:#78a9ef;box-shadow:0 0 0 4px rgba(47,117,244,.09)}
.ky-auth-control-icon{position:absolute;left:16px;width:20px;height:20px;color:#8597aa;pointer-events:none}.ky-auth-control-icon svg{width:20px;height:20px}
.ky-auth-control input{min-width:0;width:100%;height:100%;border:0;outline:0;background:transparent;color:#182d44;padding:0 16px 0 50px;font-size:14px;font-weight:560;line-height:1}.ky-auth-control input::placeholder{color:#b3bdc8;font-weight:500}.ky-auth-control-password input{padding-right:104px}
.ky-auth-password-toggle{position:absolute;right:7px;top:7px;height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;border:0;border-radius:11px;background:#f1f5f9;color:#47637f;cursor:pointer;font-size:10px;font-weight:800;white-space:nowrap;transition:background .18s ease,color .18s ease}.ky-auth-password-toggle:hover{background:#e9f1fa;color:#2f65a4}.ky-auth-password-toggle svg{width:18px;height:18px}
.ky-auth-submit{position:relative;width:100%;height:54px;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px;padding:0 18px;border:0;border-radius:15px;background:linear-gradient(135deg,#377ffb,#2465dc);box-shadow:0 14px 28px rgba(36,101,220,.24);color:#fff;cursor:pointer;font-size:13px;font-weight:850;line-height:1;white-space:nowrap;transition:transform .18s var(--kya-ease),box-shadow .18s ease,opacity .18s ease}.ky-auth-submit:hover{transform:translateY(-1px);box-shadow:0 17px 32px rgba(36,101,220,.29)}.ky-auth-submit[disabled]{cursor:wait;opacity:.78;transform:none}.ky-auth-submit-arrow{width:17px;height:17px;flex:0 0 auto}.ky-auth-submit-spinner{display:none;width:18px;height:18px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:kyAuthSpin .72s linear infinite}.ky-auth-submit.is-loading .ky-auth-submit-spinner{display:block}.ky-auth-submit.is-loading .ky-auth-submit-arrow{display:none}
.ky-auth-security{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:18px;padding-top:17px;border-top:1px solid var(--kya-line2)}.ky-auth-security-icon{width:20px;height:20px;color:#5c8fe7}.ky-auth-security-icon svg{width:20px;height:20px}.ky-auth-security strong,.ky-auth-security small{display:block}.ky-auth-security strong{color:#52677d;font-size:10px;font-weight:800}.ky-auth-security small{margin-top:2px;color:#98a5b3;font-size:8.5px;line-height:1.45}.ky-auth-status{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:999px;background:#effaf5;color:#2f8d65;font-size:8px;font-weight:800;white-space:nowrap}.ky-auth-status i{width:6px;height:6px;border-radius:50%;background:var(--kya-green)}
.ky-auth-bottomrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding:0 3px;color:#98a6b4;font-size:9px}.ky-auth-bottomrow a{color:#5078ad;font-weight:800;white-space:nowrap}.ky-auth-mini-footer{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:13px;color:#a4afba;font-size:8.5px}.ky-auth-mini-footer i{width:3px;height:3px;border-radius:50%;background:#b6c0ca}

.ky-auth-loader{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:#f3f6fa;transition:opacity .2s ease,visibility .2s ease}.ky-auth-loader.is-hidden{opacity:0;visibility:hidden;pointer-events:none}.ky-auth-loader-box{width:min(300px,calc(100vw - 36px));display:grid;grid-template-columns:auto 1fr;align-items:center;gap:11px;padding:14px;border:1px solid #e0e7ef;border-radius:15px;background:#fff;box-shadow:0 18px 44px rgba(22,43,72,.1)}.ky-auth-loader-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#3f8cff,#4360f0);color:#fff;font-size:15px;font-weight:900;font-style:italic}.ky-auth-loader-box strong,.ky-auth-loader-box small{display:block}.ky-auth-loader-box strong{font-size:10px;letter-spacing:.12em}.ky-auth-loader-box small{margin-top:3px;color:#8b9aaa;font-size:8.5px}.ky-auth-loader-line{grid-column:1/-1;height:3px;overflow:hidden;border-radius:999px;background:#edf2f7}.ky-auth-loader-line i{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3f83fa,#6a5df6);animation:kyAuthLoad 1s ease-in-out infinite}
@keyframes kyAuthSpin{to{transform:rotate(360deg)}}@keyframes kyAuthLoad{0%{transform:translateX(-120%)}100%{transform:translateX(340%)}}

@media(max-width:1100px){.ky-auth-shell{grid-template-columns:minmax(370px,.86fr) minmax(450px,1.14fr)}.ky-auth-aside-inner{padding:36px}.ky-auth-feature-list{grid-template-columns:1fr}.ky-auth-feature-list article{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:10px;padding:12px}.ky-auth-feature-list strong{margin-top:0}}

@media(max-width:860px){
  body.ky-auth-page{background:#eef3f9}
  .ky-auth-shell{display:block;min-height:100vh;min-height:100svh;background:#eef3f9}
  .ky-auth-aside{display:none}
  .ky-auth-main{display:block;min-height:100vh;min-height:100svh;padding:0;background:linear-gradient(180deg,#071a34 0 176px,#eef3f9 176px 100%)}
  .ky-auth-mobile-head{height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 8px;color:#fff}
  .ky-auth-mobile-brand{display:flex;align-items:center;gap:10px;min-width:0}.ky-auth-brandmark-sm{width:40px;height:40px;border-radius:12px;font-size:16px}.ky-auth-mobile-brand strong{font-size:13px;font-weight:850;letter-spacing:.1em}.ky-auth-mobile-brand small{margin-top:2px;color:#86a1bf;font-size:8px;font-weight:650}
  .ky-auth-market-link{height:36px;display:inline-flex;align-items:center;gap:4px;padding:0 10px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(255,255,255,.055);color:#c4d3e3;font-size:9px;font-weight:750;white-space:nowrap}.ky-auth-market-link svg{width:14px;height:14px}
  .ky-auth-mobile-intro{display:block;padding:9px 17px 0;color:#fff}.ky-auth-mobile-intro>span{display:inline-flex;align-items:center;gap:6px;color:#79b0f7;font-size:8px;font-weight:850;letter-spacing:.13em}.ky-auth-mobile-intro>span i{width:6px;height:6px;border-radius:50%;background:#4da0ff;box-shadow:0 0 0 4px rgba(77,160,255,.09)}.ky-auth-mobile-intro>strong{display:block;margin-top:8px;font-size:20px;line-height:1.1;letter-spacing:-.03em;font-weight:800}.ky-auth-mobile-intro>small{display:block;margin-top:5px;color:#90a8c3;font-size:9px}
  .ky-auth-formwrap{width:100%;margin-top:20px;padding:0 12px 24px}
  .ky-auth-card{max-width:520px;margin:0 auto;padding:20px 16px 18px;border-radius:20px;box-shadow:0 16px 42px rgba(13,33,58,.13)}
  .ky-auth-cardhead{grid-template-columns:44px minmax(0,1fr);gap:11px;margin-bottom:18px}.ky-auth-cardicon{width:44px;height:44px;border-radius:13px}.ky-auth-cardicon svg{width:21px;height:21px}.ky-auth-badge{font-size:8px}.ky-auth-card h2{margin-top:5px;font-size:22px}.ky-auth-cardhead p{font-size:10px;line-height:1.5}
  .ky-auth-bottomrow{max-width:520px;margin:11px auto 0}.ky-auth-mini-footer{padding-bottom:max(0px,env(safe-area-inset-bottom))}
}

@media(max-width:480px){
  .ky-auth-main{background:linear-gradient(180deg,#071a34 0 166px,#eef3f9 166px 100%)}
  .ky-auth-mobile-head{height:68px;padding:11px 12px 7px}.ky-auth-brandmark-sm{width:38px;height:38px}.ky-auth-mobile-brand strong{font-size:12px}.ky-auth-market-link{height:34px;padding:0 9px;font-size:8.5px}
  .ky-auth-mobile-intro{padding:8px 13px 0}.ky-auth-mobile-intro>strong{font-size:19px}.ky-auth-mobile-intro>small{font-size:8.5px}
  .ky-auth-formwrap{margin-top:18px;padding:0 9px 20px}.ky-auth-card{padding:18px 14px 16px;border-radius:18px}.ky-auth-cardhead{grid-template-columns:40px minmax(0,1fr);gap:10px;margin-bottom:16px}.ky-auth-cardicon{width:40px;height:40px}.ky-auth-card h2{font-size:20px}.ky-auth-cardhead p{font-size:9.5px}
  .ky-auth-field+.ky-auth-field{margin-top:14px}.ky-auth-labelrow{margin-bottom:6px}.ky-auth-labelrow label{font-size:10.5px}.ky-auth-labelrow span{font-size:8px}
  .ky-auth-control{height:50px;border-radius:14px}.ky-auth-control-icon{left:14px;width:18px;height:18px}.ky-auth-control-icon svg{width:18px;height:18px}.ky-auth-control input{padding-left:44px;font-size:13px}.ky-auth-control-password input{padding-right:58px}
  .ky-auth-password-toggle{right:6px;top:6px;width:38px;height:38px;padding:0;border-radius:10px}.ky-auth-password-toggle svg{width:18px;height:18px}.ky-auth-password-toggle span{display:none}
  .ky-auth-submit{height:50px;margin-top:17px;border-radius:14px;font-size:12px;white-space:nowrap}.ky-auth-submit-arrow{width:16px;height:16px}
  .ky-auth-security{grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px;margin-top:15px;padding-top:14px}.ky-auth-status{display:none}.ky-auth-security strong{font-size:9.5px}.ky-auth-security small{font-size:8px;line-height:1.4}
  .ky-auth-bottomrow{font-size:8px;padding:0 2px}.ky-auth-mini-footer{margin-top:10px;font-size:7.8px}
}

@media(max-width:360px){.ky-auth-market-link span{display:none}.ky-auth-market-link{width:34px;padding:0;justify-content:center}.ky-auth-mobile-brand small{display:none}.ky-auth-card{padding:17px 12px 15px}.ky-auth-labelrow span{display:none}.ky-auth-bottomrow{display:block;text-align:center}.ky-auth-bottomrow a{display:inline-block;margin-top:5px}}
@media(prefers-reduced-motion:reduce){.ky-auth-submit,.ky-auth-loader,.ky-auth-password-toggle{transition:none}.ky-auth-loader-line i,.ky-auth-submit-spinner{animation-duration:1.4s}}
/* KARYAKU v3.0.1 — language selector */
.ky-language-switcher{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:5px 8px;border:1px solid #dce4ed;border-radius:10px;background:#fff;color:#50657e}.ky-language-switcher select{border:0;background:transparent;outline:0;font-weight:800;color:#40546c;max-width:160px}.ky-language-switcher>i{color:#2d6dd9}
