/* Shared glass language for Halo's own authentication, console and user center. */
body.fg-platform, body.gateway-page {
  --fg-ink:#233f52; --fg-line:rgba(255,255,255,.76); --fg-glass:rgba(245,250,253,.65);
  --color-primary:#315f7c; --color-border:rgba(73,111,135,.2);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  background:linear-gradient(125deg,#e7eef2 0%,#d6e4ec 42%,#bfd6e3 72%,#e8f0f4 100%) fixed!important;
  color:var(--fg-ink); -webkit-font-smoothing:antialiased;
}
body.fg-platform .layout {background:transparent!important;}
body.fg-platform .sidebar {
  background:var(--fg-glass)!important; border-right:1px solid var(--fg-line);
  box-shadow:8px 0 40px -28px rgba(37,71,93,.3); backdrop-filter:blur(22px) saturate(130%);
}
body.fg-platform .sidebar__search {border-radius:14px;background:rgba(255,255,255,.6);border:1px solid var(--fg-line);padding:12px;}
body.fg-platform .sidebar__logo-container {padding:28px 18px 22px;}
body.fg-platform .main-content {background:transparent;}
body.fg-platform :is(.card,.v-card) {border:1px solid var(--fg-line)!important;border-radius:20px!important;box-shadow:0 12px 40px -24px rgba(31,62,85,.32)!important;overflow:hidden;}
body.fg-platform :is(.page-header,.v-page-header) {background:rgba(244,249,252,.8)!important;border-bottom:1px solid var(--fg-line);backdrop-filter:blur(18px);}
body.fg-platform :is(.rounded-base.bg-white,.rounded-lg.bg-white) {border-radius:18px;background:rgba(250,253,255,.85)!important;border:1px solid var(--fg-line);}
body.fg-platform :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select) {border-radius:11px;}
body.fg-platform :is(button,.btn):focus-visible,body.gateway-page :is(a,button,input,select):focus-visible {outline:3px solid rgba(48,107,145,.45);outline-offset:3px;}
body.fg-platform .editor {background:rgba(252,254,255,.94);}
body.fg-platform .editor .ProseMirror {font-size:16px;line-height:1.85;}
body.fg-platform .fg-writing {display:flex;flex-direction:column;min-height:0;}
body.fg-platform .fg-writing > :not(.fg-insert-toolbar) {min-height:0;flex:1;}
.fg-insert-toolbar {display:flex;gap:8px;align-items:center;flex:none;padding:10px 20px;background:rgba(233,243,249,.9);border-bottom:1px solid rgba(83,122,146,.15);position:relative;z-index:2;}
.fg-insert-toolbar > span {font-size:12px;color:#687e8c;margin-right:4px;}
.fg-insert-toolbar button {font:inherit;font-size:13px;font-weight:500;min-height:38px;padding:6px 15px;border:1px solid rgba(255,255,255,.9);border-radius:12px;background:rgba(255,255,255,.74);color:#284e65;box-shadow:0 2px 7px rgba(37,71,93,.06);cursor:pointer;transition:background .15s,transform .15s;}
.fg-insert-toolbar button:hover {background:white;transform:translateY(-1px);}
.fg-insert-toolbar small {font-size:12px;color:#70818e;margin-left:auto;}
.fg-insert-toolbar .fg-pin-settings {margin-left:8px;background:transparent;border-color:rgba(78,115,139,.2);}
.fg-pin-highlight {padding:12px;border-radius:12px;background:rgba(158,199,224,.2);outline:1px solid rgba(77,123,153,.2);}
.fg-platform-notice {position:fixed;bottom:32px;left:50%;transform:translateX(-50%);z-index:99999;max-width:90vw;padding:14px 22px;border-radius:16px;background:#284e65;color:#fff;box-shadow:0 12px 32px #142b3833;font-size:14px;}
body.gateway-page {min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:36px 18px;box-sizing:border-box;}
body.gateway-page .gateway-wrapper {width:100%;max-width:432px;margin:auto;padding:36px;box-sizing:border-box;border-radius:30px;border:1px solid var(--fg-line);background:rgba(248,252,255,.64);box-shadow:0 28px 80px -40px rgba(38,75,101,.48),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(26px) saturate(135%);}
body.gateway-page .halo-logo {margin-bottom:12px;}
.fg-platform-brand {font-size:14px;letter-spacing:.1em;font-weight:500;text-decoration:none;color:#617e91;}
.fg-gateway-title {text-align:center;margin:8px 0 30px;font-size:28px;font-weight:600;letter-spacing:-.04em;}
body.gateway-page .halo-form-wrapper {border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;}
body.gateway-page .form-item-group {display:block;}
body.gateway-page .halo-form label {font-size:13px;font-weight:500;}
body.gateway-page .halo-form input:not([type="checkbox"]):not([type="hidden"]) {box-sizing:border-box;min-height:48px;border-radius:14px;border:1px solid rgba(69,107,133,.2);background:rgba(255,255,255,.68);color:#203d50;padding:12px 14px;font-size:16px;box-shadow:inset 0 1px 2px rgba(38,75,101,.025);}
body.gateway-page .halo-form .form-input {box-sizing:border-box;display:flex;align-items:center;width:100%;height:auto;min-height:50px;padding:0;border:1px solid rgba(69,107,133,.2);border-radius:14px;background:rgba(255,255,255,.68);box-shadow:none;}
body.gateway-page .halo-form .form-input:focus-within {border-color:#648da7;box-shadow:0 0 0 3px rgba(87,131,160,.12);}
body.gateway-page .halo-form .form-input input:not([type="hidden"]) {min-width:0;width:100%;flex:1;border:0;background:transparent;box-shadow:none;outline:none;margin:0;}
body.gateway-page .halo-form .form-input-stack-icon {padding:0 12px;flex:none;}
body.gateway-page .halo-form button[type="submit"] {width:100%;min-height:48px;border:1px solid rgba(255,255,255,.25);border-radius:14px;background:#2d566e;color:#fff;font-weight:500;box-shadow:0 8px 22px -12px #244d65aa;}
body.gateway-page .halo-form button[type="submit"]:hover {background:#23485f;}
body.gateway-page .pill-items a,body.gateway-page .pill-items button {border-radius:12px;background:rgba(255,255,255,.5);}
body.gateway-page .language-switcher {margin:22px 0 0;font-size:12px;}
body.gateway-page .language-switcher select {border-radius:10px;}
body.gateway-page .alert {border-radius:12px;font-size:13px;}
@media(max-width:767px) {
  body.fg-platform .main-content {max-width:100vw;}
  .fg-insert-toolbar {padding:9px 12px;gap:6px;flex-wrap:wrap;}
  .fg-insert-toolbar button {min-height:42px;padding:7px 14px;}
  .fg-insert-toolbar small {display:none;}
  body.fg-platform .editor .ProseMirror {padding-left:18px!important;padding-right:18px!important;}
  body.gateway-page {padding:24px 16px;}
  body.gateway-page .gateway-wrapper {padding:30px 24px;border-radius:26px;}
}
@media(prefers-reduced-motion:reduce) {.fg-insert-toolbar button {transition:none;}}
@supports not (backdrop-filter:blur(1px)) {body.fg-platform .sidebar,body.gateway-page .gateway-wrapper {background:#eaf2f7!important;}}
