/* Trang đăng nhập. Phần đầu/cuối: quy tắc .gx* chuyển từ eywal.css / eywal-ui.css cũ (giữ thứ tự cascade). */
.gx{max-width:720px;margin:0 auto;padding:32px 20px 40px;box-sizing:border-box;min-height:100dvh;display:flex;flex-direction:column}
.gx-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:600;color:var(--ey-tx)}
.gx-brand img{width:36px;height:36px;border-radius:10px;flex:0 0 36px}
.gx-hero{padding:56px 0 40px;text-align:left}
.gx-title{font-size:clamp(28px,5vw,40px)!important;line-height:1.2;font-weight:700!important;margin:0 0 14px;color:var(--ey-tx);letter-spacing:-.015em}
.gx-sub{font-size:18px;line-height:1.6;color:var(--ey-tx2);margin:0 0 28px;max-width:56ch}
.gx-google{box-sizing:border-box;max-width:100%;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:0 24px;border-radius:12px;background:var(--ey-acc);color:#fff!important;font-size:16px;font-weight:600;text-decoration:none;transition:background-color .15s}
.gx-google:hover{background:var(--ey-acc2)}
.gx-google img{background:#fff;border-radius:50%;padding:2px;width:24px;height:24px}
.gx-trust{font-size:15px;color:var(--ey-tx2);margin:14px 0 0}
.gx-benefits{list-style:none;margin:0;padding:24px 0 0;border-top:1px solid var(--ey-bd);display:flex;flex-direction:column;gap:20px}
.gx-benefits li{display:flex;gap:14px;align-items:flex-start}
.gx-ico{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--ey-acc-soft);color:var(--ey-acc-tx)}
.gx-ico svg{width:20px;height:20px}
.gx-benefits h2{font-size:17px!important;font-weight:600!important;margin:0 0 4px;color:var(--ey-tx)}
.gx-benefits p{font-size:15px;line-height:1.6;margin:0;color:var(--ey-tx2)}
.gx-foot{margin-top:auto;padding-top:40px;font-size:14px;color:var(--ey-tx2)}
.gx .ey-proj{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--ey-bd);border-radius:12px;background:var(--ey-card);margin-bottom:16px}
.gx .ey-proj img{width:44px;height:44px;border-radius:10px;object-fit:cover}
.gx .ey-share{padding:12px;border:1px solid var(--ey-bd);border-radius:12px;background:var(--ey-card);margin-bottom:20px;font-size:15px}
.gx .ey-warning-box{border:1px solid var(--ey-danger);background:var(--ey-danger-soft);border-radius:12px;color:var(--ey-tx);font-size:15px;display:flex;gap:10px}
@media (max-width:767.98px){
  .gx{padding:20px 16px 28px}
  .gx-hero{padding:32px 0 28px}
  .gx-sub{font-size:16px}
  .gx-google{width:100%}
}
.gx-lang{display:flex;gap:6px;margin-left:auto;align-items:center}
.gx-lang a{font-size:12px;font-weight:650;letter-spacing:.06em;color:var(--ey-tx3);padding:5px 10px;border-radius:8px;border:1px solid transparent;text-decoration:none}
.gx-lang a:hover{color:var(--ey-tx)}
body.eywal-auth{margin:0;min-height:100vh;min-height:100dvh;background:var(--ey-bg) !important;color:var(--ey-tx) !important;font-size:16px !important;line-height:1.6 !important;overflow-x:clip;color-scheme:light dark}body.eywal-auth::before,body.eywal-auth::after{display:none !important}body.eywal-auth *,body.eywal-auth *::before,body.eywal-auth *::after{box-sizing:border-box}body.eywal-auth [hidden]{display:none !important}body.eywal-auth :focus-visible{outline:2px solid #b6c9ff !important;outline-offset:4px}body.eywal-auth .gx{width:100%;max-width:1200px;min-height:100vh;min-height:100dvh;margin:0 auto;padding:30px 40px 26px}body.eywal-auth .gx-brand{flex:0 0 auto;font-size:22px;font-weight:600;letter-spacing:-.035em}body.eywal-auth .gx-brand-link{display:inline-flex;align-items:center;gap:12px;color:var(--ey-tx);text-decoration:none;border-radius:10px}body.eywal-auth .gx-brand-link:hover{color:#fff}body.eywal-auth .gx-brand img{display:block;flex:0 0 52px;width:52px;height:52px;object-fit:contain;border-radius:0}body.eywal-auth .gx-layout{flex:1;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);align-items:center;gap:clamp(40px,6vw,88px);padding:clamp(56px,9vh,102px) 0 68px}body.eywal-auth .gx-intro{min-width:0}body.eywal-auth .gx-invitation{max-width:13ch;margin:0;color:var(--ey-tx);font-size:clamp(42px,4.4vw,58px) !important;line-height:1.14;font-weight:560 !important;letter-spacing:-.045em;text-wrap:balance}body.eywal-auth .gx-benefits{margin:38px 0 0;padding:0;border:0;gap:28px;scroll-margin-top:32px}body.eywal-auth .gx-benefits li{gap:16px}body.eywal-auth .gx-benefits li>div{min-width:0;max-width:44ch}body.eywal-auth .gx-ico{flex-basis:42px;width:42px;height:42px;border-radius:12px;color:#bcc9ff}body.eywal-auth .gx-ico svg{width:21px;height:21px}body.eywal-auth .gx-benefits h2{margin:0 0 7px;font-size:17px !important;line-height:1.5;letter-spacing:-.018em}body.eywal-auth .gx-benefits p{font-size:14px;line-height:1.8}body.eywal-auth .gx-hero{width:100%;max-width:440px;min-width:0;justify-self:end;padding:34px;border:1px solid var(--ey-bd);border-radius:22px;background:linear-gradient(150deg,rgba(78,99,157,.11),transparent 65%),var(--ey-card);box-shadow:0 22px 64px rgba(0,0,0,.22);text-align:left}body.eywal-auth .gx-hero:only-child{grid-column:1 / -1;max-width:500px;justify-self:center}body.eywal-auth .gx-title{margin:0 0 28px;font-size:27px !important;line-height:1.3;font-weight:600 !important;letter-spacing:-.035em}body.eywal-auth .gx-sub{margin:-12px 0 26px;font-size:14px;line-height:1.75}body.eywal-auth .gx-google{width:100%;min-height:54px;padding:14px 18px;border:1px solid #dce6f8;border-radius:10px;background:#f3f7ff;color:#18253d !important;font-size:14px;line-height:1.5;text-align:center}body.eywal-auth .gx-google:hover{background:#dfeaff;border-color:#dfeaff}body.eywal-auth .gx-google img{flex:0 0 20px;width:20px;height:20px;padding:0;border-radius:0;background:transparent}body.eywal-auth .gx-trust{margin:16px 0 0;color:var(--ey-tx2);font-size:12px;line-height:1.8;text-align:center}body.eywal-auth #pkBox{margin-top:26px !important}body.eywal-auth #pkLogin{width:100%;min-height:50px;margin:0 !important;padding:12px 16px !important;border:1px solid var(--ey-bd2) !important;border-radius:10px !important;background:transparent !important;color:var(--ey-tx) !important;font:500 14px/1.5 var(--ey-font) !important}body.eywal-auth #pkLogin:hover{border-color:#8d9fc7 !important;background:var(--ey-elev) !important}body.eywal-auth #recOpen{display:inline-flex;align-items:center;min-height:44px;color:#bdcbe2;font-size:13px;text-decoration:underline;text-decoration-color:rgba(189,203,226,.45);text-underline-offset:4px}body.eywal-auth #recOpen:hover{color:#f3f7ff;text-decoration-color:currentColor}body.eywal-auth #recForm{flex-wrap:wrap;gap:10px !important;margin-top:6px !important}body.eywal-auth #recForm input{flex:1 1 100%;width:100% !important;min-width:0;min-height:48px;padding:12px 14px !important;font-size:16px !important;line-height:1.5;letter-spacing:.02em !important}body.eywal-auth #recForm input::placeholder{font-size:14px;font-weight:400;letter-spacing:0}body.eywal-auth #recForm button{width:100%;min-height:48px;padding:12px 16px !important;border:1px solid #7782eb !important;border-radius:10px !important;background:#5962d5 !important;color:#fff !important;font:600 14px/1.5 var(--ey-font);cursor:pointer}body.eywal-auth #recForm button:hover{background:#666fe2 !important}body.eywal-auth #recMsg{padding:12px;border:1px solid rgba(194,148,175,.28);border-radius:10px;background:#241e32;color:#f2d4df;font-size:13px;text-align:left;overflow-wrap:anywhere}body.eywal-auth .gx .ey-warning-box{margin:0 0 22px;padding:12px;border-color:rgba(222,184,112,.36);background:rgba(222,184,112,.08);color:#f3d7a6;font-size:13px;line-height:1.7;overflow-wrap:anywhere}body.eywal-auth .gx .ey-warning-ico{margin-top:3px}body.eywal-auth .gx .ey-proj,body.eywal-auth .gx .ey-share{background:rgba(139,157,239,.04);font-size:13px}body.eywal-auth .ey-proj .text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.eywal-auth .ey-share .ri{display:flex;align-items:flex-start;gap:10px;margin-top:10px;color:var(--ey-tx2)}body.eywal-auth .ey-share .ri svg{flex:0 0 16px;width:16px;height:16px;margin-top:3px}body.eywal-auth .gx-foot{padding-top:22px;color:#96a7c2;font-size:12px}@media (max-width:900px){body.eywal-auth .gx{max-width:680px;padding:26px 32px}body.eywal-auth .gx-layout{grid-template-columns:minmax(0,1fr);gap:40px;padding:48px 0}body.eywal-auth .gx-invitation{font-size:46px !important}body.eywal-auth .gx-benefits li>div{max-width:52ch}body.eywal-auth .gx-hero{max-width:none;justify-self:stretch;padding:30px}}@media (max-width:520px){body.eywal-auth .gx{padding:22px 20px 24px}body.eywal-auth .gx-layout{gap:32px;padding:38px 0}body.eywal-auth .gx-invitation{font-size:38px !important;line-height:1.18}body.eywal-auth .gx-benefits{margin-top:30px;gap:24px}body.eywal-auth .gx-benefits li{gap:12px}body.eywal-auth .gx-ico{flex-basis:36px;width:36px;height:36px;border-radius:10px}body.eywal-auth .gx-ico svg{width:19px;height:19px}body.eywal-auth .gx-benefits h2{margin-bottom:6px;font-size:16px !important}body.eywal-auth .gx-benefits p{line-height:1.7}body.eywal-auth .gx-hero{padding:26px 20px;border-radius:18px}body.eywal-auth .gx-title{font-size:25px !important;margin-bottom:24px}}@media (max-width:380px){body.eywal-auth .gx-invitation{font-size:36px !important}}@media (prefers-reduced-motion:reduce){body.eywal-auth *,body.eywal-auth *::before,body.eywal-auth *::after{transition:none !important;animation:none !important;scroll-behavior:auto !important}}body.eywal-auth .gx-google{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;border-radius:14px;border:1px solid rgba(124,92,255,.38);background:linear-gradient(180deg,#ffffff 0%,#eef4ff 100%);box-shadow:0 10px 26px rgba(7,12,28,.28),inset 0 1px 0 rgba(255,255,255,.9);font-weight:650;letter-spacing:-.01em;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}body.eywal-auth .gx-google:hover{background:linear-gradient(180deg,#ffffff 0%,#e4edff 100%);border-color:rgba(124,92,255,.55);box-shadow:0 14px 32px rgba(7,12,28,.34);transform:translateY(-1px)}body.eywal-auth .gx-google:active{transform:translateY(0);box-shadow:0 8px 20px rgba(7,12,28,.26)}body.eywal-auth .gx-google:focus-visible{outline:2px solid #9db4ff;outline-offset:3px}body.eywal-auth .gx-google img{flex:0 0 22px;width:22px;height:22px}body.eywal-auth .ey-proj{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(124,92,255,.22);border-radius:14px;background:linear-gradient(135deg,rgba(124,92,255,.14),rgba(124,92,255,.04))}body.eywal-auth .ey-proj img{flex:0 0 44px;width:44px;height:44px;border-radius:12px;object-fit:cover;background:#0b1226}body.eywal-auth .ey-proj .fw-semibold{font-size:15px;letter-spacing:-.01em}body.eywal-auth .ey-proj .mono{margin-top:2px;color:var(--ey-tx2);font-size:11px;letter-spacing:.02em}@media (max-width:520px){body.eywal-auth .gx-hero{padding:22px 18px}body.eywal-auth .gx-title{font-size:23px !important;margin-bottom:20px}body.eywal-auth .gx-google{min-height:54px;padding:13px 14px}body.eywal-auth .ey-proj{padding:10px 12px}}.gx-pk{margin-top:10px;text-align:center}.gx-btn2,.gx-btn1{font:inherit;cursor:pointer;min-height:40px;border-radius:10px;padding:8px 16px}.gx-btn2{display:block;margin:8px auto 0;border:1px solid var(--ey-bd2);background:transparent;color:inherit}.gx-btn1{border:0;background:var(--ey-acc);color:#fff}.gx-link{background:none;border:0;padding:8px;min-height:40px;font:inherit;color:var(--ey-acc-tx);text-decoration:underline;cursor:pointer}.gx-rec{display:flex;gap:8px;justify-content:center;margin-top:8px;flex-wrap:wrap}.gx-rec[hidden]{display:none}.gx-rec input{padding:8px 10px;border:1px solid var(--ey-bd2);border-radius:8px;background:var(--ey-card);color:var(--ey-tx);font:600 16px monospace;letter-spacing:.08em;width:14em;max-width:100%;min-height:40px}

body.eywal-auth .gx-brand img{width:150px;height:44px;flex-basis:150px}
@media (min-width:900px) and (min-height:660px){
  body.eywal-auth .gx{height:100dvh;min-height:0;display:flex;flex-direction:column;padding:22px 44px 14px;max-width:1240px}
  body.eywal-auth .gx-layout{min-height:0}
  body.eywal-auth .gx-benefits{margin-top:26px;gap:20px}
  body.eywal-auth .gx-benefits p{font-size:13.5px;line-height:1.65}
  body.eywal-auth .gx-benefits h2{font-size:16px!important;margin-bottom:4px}
  body.eywal-auth .gx-ico{flex-basis:38px;width:38px;height:38px}
  body.eywal-auth .gx-google{min-height:50px;padding:12px 16px}
  body.eywal-auth .gx-trust{margin-top:12px}
  body.eywal-auth #pkBox{margin-top:18px!important}
}
.gx-lang a.on{background:var(--ey-elev);border-color:var(--ey-bd);color:var(--ey-tx)}
@media (max-width:480px){
  .gx-rec input{width:100%}
}
body.eywal-auth .gx-layout{flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;gap:var(--ey-sp-4);max-width:420px;width:100%;margin:auto;padding:var(--ey-sp-5);background:var(--ey-card);border:1px solid var(--ey-bd);border-radius:var(--ey-r);box-shadow:var(--ey-shadow-lg)}
body.eywal-auth .gx-invitation{font-size:26px!important;line-height:1.2;margin:0}
body.eywal-auth .gx-hero{padding:0;max-width:none;background:transparent;border:0;box-shadow:none;backdrop-filter:none}
body.eywal-auth .gx-title{display:none}
.gx-intro{display:contents}
.gx-invitation{order:0}
.gx-hero{order:1}
.gx-more{order:2;font-size:var(--ey-fs-sm)}
.gx-more>summary{cursor:pointer;min-height:40px;color:var(--ey-tx2)}
/* Chuyển từ eywal-ui.css cũ (2026-11-16): khung cao 1 màn hình trên desktop; vùng chạm tối thiểu trên màn cảm ứng. */
@media (min-width:900px) and (min-height:660px){html,body.eywal-auth{height:100%;overflow:hidden}}
@media (pointer:coarse){.gx-link,.gx-btn1,.gx-btn2,.gx-google{min-height:40px}}
