[hidden] { display: none !important; }
.google-signin { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:44px; padding:10px 16px; background:#fff; color:#1f1f1f; border:1px solid #747775; border-radius:8px; font:500 14px Arial,sans-serif; cursor:pointer; }
.google-signin:hover { background:#f2f5fc; }
.google-signin:focus-visible { outline:3px solid #4285f4; outline-offset:3px; }
.google-signin:disabled { opacity:.65; cursor:wait; }
.google-signin svg { flex:none; }
.auth-divider { display:flex; align-items:center; gap:12px; font-size:12px; color:var(--text-muted,#98a2b3); }
.auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:var(--border,#344054); }
.auth-shell { min-height:100vh; display:grid; place-items:center; padding:24px; background:var(--bg,#101828); }
.auth-card { width:min(100%,420px); display:grid; gap:18px; padding:32px; border:1px solid var(--border,#344054); border-radius:20px; background:var(--panel,#182230); color:var(--text,#f2f4f7); box-shadow:0 24px 80px #0003; }
.auth-card h1,.auth-card p { margin:0; }
.auth-card p { line-height:1.5; }
.auth-card form { display:grid; gap:16px; }
.auth-card label { display:grid; gap:7px; }
.auth-card input { width:100%; padding:12px; border:1px solid #667085; border-radius:8px; background:transparent; color:inherit; font:inherit; }
.auth-actions { display:flex; flex-wrap:wrap; gap:8px; }
#auth-message { min-height:24px; font-size:14px; }
/* Approved Meta3D authentication surface. */
.auth-shell {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background-color:#10091a;
  background-image:
    linear-gradient(154deg,transparent 0 23%,#32175a 23% 36%,transparent 36%),
    linear-gradient(28deg,transparent 0 58%,#22113b 58% 72%,transparent 72%),
    linear-gradient(121deg,#10091a 0 48%,#180c27 48% 70%,#0d0814 70% 100%);
}
.auth-shell::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(165deg,transparent 0 27%,#f8446e12 27% 28%,transparent 28% 100%),
    linear-gradient(15deg,transparent 0 67%,#40d7ff12 67% 68%,transparent 68% 100%);
}
.auth-card {
  width:min(100%,480px);
  gap:15px;
  padding:32px 38px;
  border:1px solid #a584bd73;
  border-radius:18px;
  background:#23172fd9;
  color:#fbf8ff;
  box-shadow:0 30px 90px #050208a8,inset 0 1px 0 #ffffff14;
  backdrop-filter:blur(18px);
}
.auth-brand { display:grid; justify-items:center; gap:6px; padding-bottom:4px; }
.auth-brand .brand-logo { width:min(100%,226px); height:auto; }
.auth-brand > span { color:#cdb9dc; font-size:12px; font-weight:600; }
.auth-card form { gap:15px; }
.auth-card label { color:#f5edfa; font-weight:650; }
.auth-card input { min-height:46px; border-color:#8967a3; background:#120b1cb8; box-shadow:inset 0 1px 0 #ffffff0b; }
.auth-card input:focus { border-color:#c05dff; outline:3px solid #a100ff2e; outline-offset:1px; }
.auth-card .google-signin {
  min-height:46px;
  border:1px solid #8d6ba7;
  background:#ffffff0a;
  color:#f8f2fc;
  font-family:inherit;
  font-weight:650;
  box-shadow:inset 0 1px 0 #ffffff10;
  transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease;
}
.auth-card .google-signin:hover { border-color:#c582ed; background:#ffffff12; box-shadow:inset 0 1px 0 #ffffff1c,0 8px 24px #09040f40; }
.auth-card .google-signin:focus-visible,.forgot-password:focus-visible { outline:3px solid #b943ff59; outline-offset:2px; }
.forgot-password { justify-self:end; margin-top:-8px; padding:2px 0; border:0; background:transparent; color:#d88cff; font:650 12px/1.4 inherit; cursor:pointer; }
.forgot-password:hover { color:#f3cfff; text-decoration:underline; text-underline-offset:3px; }
.auth-card .primary-button {
  min-height:46px;
  background:linear-gradient(100deg,#8f00e2 0%,#b500f5 54%,#f84488 100%);
  border-color:#cf65ff;
  color:#fff;
  box-shadow:0 10px 28px #a100ff42,inset 0 1px 0 #ffffff40;
}
.auth-card .primary-button:hover { background:linear-gradient(100deg,#7e00c7 0%,#a100dc 54%,#e53474 100%); border-color:#df91ff; }
.auth-card .ghost-button { min-height:42px; background:#ffffff08; border-color:#765990; color:#f0e5f7; }
.auth-card h1 { color:#fff; font-size:25px; line-height:1.2; text-align:center; }
.auth-card > form > p { color:#d8cce1; text-align:center; }
#auth-message { min-height:20px; color:#d5b7e9; font-size:13px; }
.auth-card small { color:#bcaec7; line-height:1.5; }
:root[data-theme="light"] .auth-shell {
  background-color:#f4eff8;
  background-image:
    linear-gradient(154deg,transparent 0 23%,#d9c0ec 23% 36%,transparent 36%),
    linear-gradient(28deg,transparent 0 58%,#eadcf3 58% 72%,transparent 72%),
    linear-gradient(121deg,#f8f4fb 0 48%,#efe5f5 48% 70%,#faf7fc 70% 100%);
}
:root[data-theme="light"] .auth-shell::before {
  background:
    linear-gradient(165deg,transparent 0 27%,#f8446e14 27% 28%,transparent 28% 100%),
    linear-gradient(15deg,transparent 0 67%,#8f00e214 67% 68%,transparent 68% 100%);
}
:root[data-theme="light"] .auth-card { border-color:#d8c9e3; background:#fffffff0; color:#352442; box-shadow:0 28px 80px #32134d32,inset 0 1px 0 #fff; }
:root[data-theme="light"] .auth-brand > span,:root[data-theme="light"] .auth-card small { color:#67576f; }
:root[data-theme="light"] .auth-card h1,:root[data-theme="light"] .auth-card label { color:#1c0531; }
:root[data-theme="light"] .auth-card input { border-color:#b9a8c5; background:#fbf9fc; color:#352442; }
:root[data-theme="light"] .auth-card .google-signin { border-color:#bca8c9; background:#fff; color:#2c1b37; box-shadow:0 5px 18px #32134d14; }
:root[data-theme="light"] .auth-card .google-signin:hover { border-color:#9258ae; background:#fbf7fd; box-shadow:0 8px 22px #32134d1f; }
:root[data-theme="light"] .forgot-password { color:#6f248f; }
:root[data-theme="light"] .forgot-password:hover { color:#4e116c; }
:root[data-theme="light"] .auth-card .ghost-button { border-color:#b58acb; color:#5f237e; }
:root[data-theme="light"] #auth-message { color:#6c258f; }
@media(max-width:600px) {
  .auth-shell { align-items:start; padding:28px 16px; }
  .auth-card { gap:14px; padding:26px 22px; }
  .auth-brand .brand-logo { width:204px; }
}
@media(prefers-reduced-motion:reduce) { .auth-card button { transition:none; } }
