
/* ============================================================
   AIFO auth — 2.0 replica + dual account login (2.0 / 1.0)
   Tokens extracted from app.aifoeducation.com/login
   ============================================================ */

.aifo-login-v2{
  --brand: #f98715;
  --brand-hover: #ff9929;
  --brand-btn: #ff8a14;
  --brand-soft: rgba(255,138,20,.14);
  --brand-border: rgba(255,138,20,.45);
  --brand-text: #ffae5d;

  --text-strong: #f7f4ef;
  --text-75: rgba(247,244,239,.75);
  --text-84: rgba(247,244,239,.84);
  --text-muted: rgba(247,244,239,.55);
  --text-faint: rgba(247,244,239,.42);
  --placeholder: rgba(247,244,239,.28);

  /* Figma 17118:66254 / 17118:66277; shared by the 1.0 and 2.0 forms. */
  --input-bg: #141414;
  --input-border: rgba(255,255,255,.06);
  --input-border-hover: rgba(255,255,255,.14);

  --card-bg: #0e0e0e;
  --surface: rgba(255,255,255,.02);
  --surface-hover: rgba(255,255,255,.035);
  --hairline: rgba(247,244,239,.12);

  --danger: #ff8f7a;
  --danger-border: rgba(255,120,100,.55);

  --page-bg:
    radial-gradient(ellipse 760px 980px at -110px -190px, #ff9312b3, #7938073d 34%, #14090124 58%, transparent 72%),
    radial-gradient(ellipse 760px 980px at 330px 120px, #6b30073d, transparent 66%),
    #030201;

  --radius-input: 10px;
  --radius-card: 20px;
  --ease: cubic-bezier(.32,.72,0,1);
}

.aifo-login-v2[data-theme="light"]{
  --brand: #e07600;
  --brand-hover: #c96a00;
  --brand-btn: #f98715;
  --brand-soft: rgba(249,135,21,.10);
  --brand-border: rgba(224,118,0,.42);
  --brand-text: #a85500;

  --text-strong: #1b1006;
  --text-75: rgba(27,16,6,.72);
  --text-84: rgba(27,16,6,.84);
  --text-muted: rgba(27,16,6,.55);
  --text-faint: rgba(27,16,6,.42);
  --placeholder: rgba(27,16,6,.34);

  --input-bg: #ffffff;
  --input-border: rgba(27,16,6,.12);
  --input-border-hover: rgba(27,16,6,.24);

  --card-bg: #ffffff;
  --surface: rgba(27,16,6,.025);
  --surface-hover: rgba(27,16,6,.05);
  --hairline: rgba(27,16,6,.10);

  --page-bg:
    radial-gradient(ellipse 760px 980px at -110px -190px, #ffc98a9e, #ffdcb34d 40%, transparent 72%),
    #f6f1ea;
}

.aifo-login-v2 *,.aifo-login-v2 *::before,.aifo-login-v2 *::after{ box-sizing: border-box; }

.aifo-login-v2,.aifo-login-v2{ height:100%; }

.aifo-login-v2{
  margin:0;
  min-height:100dvh;
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--text-strong);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size:16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.aifo-login-v2 button{ font-family: inherit; }

/* ---------------- layout ---------------- */
.aifo-login-v2 .shell{
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 88px 36px 72px;
  display: grid;
  grid-template-columns: 416px 680px;
  gap: 152px;
  align-items: start;
  justify-content: center;
}

/* ---------------- left: auth ---------------- */
.aifo-login-v2 .auth{ width: 100%; max-width: 416px; justify-self: center; }

.aifo-login-v2 .brand{
  display: block;
  width: 113px;
  height: 30px;
  margin: 0 auto 24px;
}

.aifo-login-v2 .brand img{ display: block; width: 100%; height: auto; }

.aifo-login-v2 h1{
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.56px;
  text-align: center;
  color: var(--text-strong);
  text-wrap: balance;
}

.aifo-login-v2 .sub{
  margin: 0 0 26px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--text-75);
}

.aifo-login-v2 .section-label{
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------------- account cards ---------------- */
.aifo-login-v2 .switcher{ display: flex; flex-direction: column; gap: 12px; }

.aifo-login-v2 .acct{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .22s, background-color .22s, box-shadow .28s;
}
.aifo-login-v2[data-theme="light"] .acct{ border-color: rgba(27,16,6,.10); background: #fff; }

.aifo-login-v2 .acct:hover{
  border-color: rgba(255,255,255,.16);
  background: var(--surface-hover);
}
.aifo-login-v2[data-theme="light"] .acct:hover{ border-color: rgba(27,16,6,.20); background: #fff; }

.aifo-login-v2 .acct.is-active{
  border-color: var(--brand-border);
  background:
    linear-gradient(180deg, rgba(255,138,20,.055), rgba(255,138,20,0) 62%),
    var(--surface);
  box-shadow: 0 12px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05);
}
.aifo-login-v2[data-theme="light"] .acct.is-active{
  background:
    linear-gradient(180deg, rgba(249,135,21,.05), rgba(249,135,21,0) 62%),
    #fff;
  box-shadow: 0 12px 34px rgba(87,53,10,.10), inset 0 1px 0 rgba(255,255,255,.9);
}

.aifo-login-v2 .acct form input{ background-clip: padding-box; }

.aifo-login-v2 .acct-head{
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 16px;
  background: none;
  border: 0;
  border-radius: 13px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.aifo-login-v2 .acct-head:focus-visible{
  outline: 2px solid rgba(255,138,20,.6);
  outline-offset: 2px;
}

/* radio dot */
.aifo-login-v2 .dot{
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid rgba(247,244,239,.32);
  transition: border-color .2s, box-shadow .25s;
}
.aifo-login-v2[data-theme="light"] .dot{ border-color: rgba(27,16,6,.28); }

.aifo-login-v2 .dot::after{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  transform: scale(0);
  transition: transform .22s var(--ease);
}

.aifo-login-v2 .acct.is-active .dot{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,138,20,.12);
}
.aifo-login-v2 .acct.is-active .dot::after{ transform: scale(1); }

.aifo-login-v2 .acct-text{ min-width: 0; flex: 1 1 auto; }

.aifo-login-v2 .acct-title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-strong);
}

.aifo-login-v2 .badge{
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.aifo-login-v2 .badge.upgrade{
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  color: #f98715;
  background: rgba(249,135,21,.2);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: -.12px;
}
.aifo-login-v2 .acct-desc{
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* accordion body */
.aifo-login-v2 .acct-panel{
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .42s var(--ease), opacity .26s;
}
.aifo-login-v2 .acct.is-active .acct-panel{ grid-template-rows: 1fr; opacity: 1; }
.aifo-login-v2 .acct-panel-in{ overflow: hidden; min-height: 0; }

.aifo-login-v2 .acct-body{
  padding: 0 16px 18px;
  border-top: 1px solid transparent;
  transition: border-color .2s;
}
.aifo-login-v2 .acct.is-active .acct-body{ border-top-color: var(--hairline); }

/* ---------------- form ---------------- */
.aifo-login-v2 form{ margin: 0; padding-top: 16px; }

.aifo-login-v2 .field{ margin-bottom: 16px; }
.aifo-login-v2 .field:last-of-type{ margin-bottom: 0; }

.aifo-login-v2 label.cap{
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-strong);
}

.aifo-login-v2 input[type="text"],
.aifo-login-v2 input[type="email"],
.aifo-login-v2 input[type="password"]{
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  background: var(--input-bg);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 16px;
  line-height: 1;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.aifo-login-v2 input::placeholder{ color: var(--placeholder); }
.aifo-login-v2 input:hover{ border-color: var(--input-border-hover); }
.aifo-login-v2 input:focus{
  border-color: var(--brand-border);
  box-shadow: 0 0 0 3px rgba(255,138,20,.14);
}

.aifo-login-v2 .input-wrap{
  position: relative;
  display: flex;
  align-items: center;
}
.aifo-login-v2 .input-wrap.has-toggle input{ padding-right: 52px; }

.aifo-login-v2 .input-wrap.has-action input {
  height: 45px;
  padding-inline: 12px 76px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: -.14px;
}

.aifo-login-v2[data-theme="dark"] .input-wrap.has-action {
  --input-border: #333;
  --input-bg: #141414;
  --placeholder: #666;
  --text-muted: #999;
}

.aifo-login-v2 .input-wrap.has-action:has(.send[data-sending]) input {
  padding-inline-end: min(124px, 45%);
}

.aifo-login-v2 .send {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 12px;
  display: flex;
  align-items: center;
  max-width: 40%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -.14px;
  cursor: pointer;
}

.aifo-login-v2 .send-label {
  overflow: hidden;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--input-border);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aifo-login-v2 #form-v2:has(#v2-email:valid) .send:not(:disabled),
.aifo-login-v2 .send[data-countdown] { color: #F98715; }
.aifo-login-v2 .send:disabled { cursor: default; }

.aifo-login-v2 #form-v2 .field:not(.has-error) .has-action:has(.send[data-countdown]) input,
.aifo-login-v2 .field:not(.has-error) input:is(#v1-user, #v1-pass, #v2-email, #v2-code, #v2-invite):focus {
  border-color: #F98715;
  box-shadow: 0 0 0 1px var(--page-bg), 0 0 0 3px rgba(249, 135, 21, .3);
}

.aifo-login-v2 .eye{
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .18s, background-color .18s;
}
.aifo-login-v2 .eye:hover{ color: var(--text-strong); background: rgba(255,255,255,.06); }
.aifo-login-v2 .eye svg{ width: 19px; height: 19px; }
.aifo-login-v2 .eye[aria-pressed="false"] .eye-visible,
.aifo-login-v2 .eye[aria-pressed="true"] .eye-hidden{ display: none; }

/* checkbox */
.aifo-login-v2 .check{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-strong);
}
.aifo-login-v2 .check input{
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(247,244,239,.62);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background-color .18s, border-color .18s;
}
.aifo-login-v2[data-theme="light"] .check input{ border-color: rgba(27,16,6,.42); }

.aifo-login-v2 .check input::after{
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .16s var(--ease);
}
.aifo-login-v2 .check input:checked{
  background: var(--brand-btn);
  border-color: var(--brand-btn);
}
.aifo-login-v2 .check input:checked::after{ transform: rotate(45deg) scale(1); }
.aifo-login-v2 .check input:focus-visible{ outline: 2px solid rgba(255,138,20,.55); outline-offset: 2px; }

.aifo-login-v2 .check a, .aifo-login-v2 .link a, .aifo-login-v2 a.link{
  color: var(--text-strong);
  text-decoration: none;
  border-bottom: 1px solid rgba(247,244,239,.28);
  padding-bottom: .5px;
  transition: color .16s, border-color .16s;
}
.aifo-login-v2 .check a:hover, .aifo-login-v2 a.link:hover{ color: var(--brand-text); border-color: var(--brand-border); }

.aifo-login-v2 .check-terms {
  align-items: center;
  gap: 2px;
  color: var(--text-75);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: .24px;
}

.aifo-login-v2 .check-terms input {
  width: 15px;
  height: 15px;
  border-radius: 3.5px;
}

.aifo-login-v2 .check-terms input:checked {
  background: #F98715 url("../../images/pages/login-v2/terms-check.svg") center no-repeat;
  border-color: #F98715;
}

.aifo-login-v2 .check-terms input::after { content: none; }

.aifo-login-v2 .check-terms a {
  color: inherit;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-position: from-font;
}

.aifo-login-v2 .check-terms input:checked + span,
.aifo-login-v2 .check-terms a:hover,
.aifo-login-v2 .check-terms a:focus-visible { color: #F98715; }

.aifo-login-v2 .check-terms input:checked + span a,
.aifo-login-v2 .check-terms a:hover,
.aifo-login-v2 .check-terms a:focus-visible { text-decoration-color: rgba(249, 135, 21, .4); }

.aifo-login-v2 .check.sm{ font-size: 13px; font-weight: 500; color: var(--text-75); }

/* buttons */
.aifo-login-v2 .btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: var(--radius-input);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s, transform .12s, box-shadow .18s, opacity .18s;
}
.aifo-login-v2 .btn-primary{
  background: var(--brand-btn);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255,138,20,.15), inset 0 1px 0 rgba(255,255,255,.14);
}
.aifo-login-v2 .btn-primary:hover{ background: var(--brand-hover); }
.aifo-login-v2 .btn-primary:active{ transform: translateY(1px); }
.aifo-login-v2 .btn-primary:disabled{ cursor: default; opacity: .8; }

.aifo-login-v2 .spinner{
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}
.aifo-login-v2 .btn.is-busy .spinner{ display: block; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.aifo-login-v2 .divider{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 20px;
  color: rgba(247,244,239,.78);
  font-size: 14px;
}
.aifo-login-v2[data-theme="light"] .divider{ color: rgba(27,16,6,.6); }
.aifo-login-v2 .divider::before,
.aifo-login-v2 .divider::after{
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(247,244,239,.16);
}
.aifo-login-v2[data-theme="light"] .divider::before,
.aifo-login-v2[data-theme="light"] .divider::after{ background: rgba(27,16,6,.12); }

.aifo-login-v2 .btn-google{
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px 8px 6px;
  border: 1px solid rgba(247,244,239,.16);
  border-radius: 9px;
  background: rgba(3,2,1,.36);
  color: var(--text-84);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
.aifo-login-v2[data-theme="light"] .btn-google{
  background: #fff;
  border-color: rgba(27,16,6,.14);
  color: rgba(27,16,6,.8);
}
.aifo-login-v2 .btn-google:hover{ background: rgba(255,255,255,.05); border-color: rgba(247,244,239,.26); }
.aifo-login-v2[data-theme="light"] .btn-google:hover{ background: #fffdfa; border-color: rgba(27,16,6,.24); }
.aifo-login-v2 .btn-google img{ width: 20px; height: 20px; margin: 0 auto; display: block; }

.aifo-login-v2 .row-between{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 18px;
}
.aifo-login-v2 .row-between a{ margin-inline-start: auto; font-size: 13px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.aifo-login-v2 .row-between a:hover{ text-decoration: underline; }

/* errors + hints */
.aifo-login-v2 .err{
  display: none;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--danger);
}
.aifo-login-v2 .field.has-error input{ border-color: var(--danger-border); }
.aifo-login-v2 .field.has-error .err{ display: block; }
.aifo-login-v2 .field.has-error input:focus{ box-shadow: 0 0 0 3px rgba(255,120,100,.12); }

.aifo-login-v2 #form-v2 .err {
  margin: 8px 0 0;
  color: #FF3844;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: -.12px;
}

.aifo-login-v2 #form-v2 [data-field="terms"] .err { margin-top: 4px; }

.aifo-login-v2 #form-v2 .field.has-error input {
  border-color: #FF3844;
  box-shadow: none;
}

.aifo-login-v2 .hint{
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--brand-text);
  display: none;
}
.aifo-login-v2 .hint.show{ display: block; }

/* shake */
@keyframes shake{
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-5px); }
  40%{ transform: translateX(4px); }
  60%{ transform: translateX(-3px); }
  80%{ transform: translateX(2px); }
}
.aifo-login-v2 .shake{ animation: shake .4s ease; }

/* toast */
.aifo-login-v2 .toast{
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translate(-50%, -16px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(15,13,12,.95);
  color: #f7f4ef;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 18px 46px rgba(0,0,0,.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s, transform .32s var(--ease);
  z-index: 90;
  backdrop-filter: blur(8px);
}
.aifo-login-v2 .toast.show{ opacity: 1; transform: translate(-50%, 0); }
.aifo-login-v2 .toast svg{ width: 16px; height: 16px; flex: 0 0 auto; color: #37d67a; }

/* ---------------- right: promo ---------------- */
.aifo-login-v2 .promo{
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 680px;
}

.aifo-login-v2 .promo-card{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.aifo-login-v2[data-theme="light"] .promo-card{
  border: 1px solid rgba(27,16,6,.08);
  box-shadow: 0 12px 30px rgba(87,53,10,.06);
}

.aifo-login-v2 .promo-a{
  display: flex;
  align-items: center;
  gap: 35px;
  min-height: 347px;
  padding: 40px;
}

.aifo-login-v2 .promo-copy{ flex: 1 1 auto; min-width: 0; }

.aifo-login-v2 .promo-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.33;
  color: #fff;
}
.aifo-login-v2[data-theme="light"] .section-label{ color: rgba(27,16,6,.5); }
.aifo-login-v2[data-theme="light"] .promo-title{ color: #1b1006; }

.aifo-login-v2 .promo-desc{
  margin: 0;
  font-size: 15px;
  line-height: 1.33;
  color: #999;
}
.aifo-login-v2[data-theme="light"] .promo-desc{ color: rgba(27,16,6,.58); }

.aifo-login-v2 .promo-art{
  flex: 0 0 auto;
  width: 305px;
  border-radius: 10px;
  overflow: hidden;
}
.aifo-login-v2 .promo-art img{ display: block; width: 100%; height: auto; }

.aifo-login-v2 .promo-b{ display: flex; flex-direction: column; padding: 0 10px 20px; }
.aifo-login-v2 .promo-b .art-wide{ width: 100%; }
.aifo-login-v2 .promo-b .art-wide img{ display: block; width: 100%; height: auto; }
.aifo-login-v2 .promo-b .promo-foot{ padding: 0 22px; text-align: center; }
.aifo-login-v2 .promo-b .promo-title{ margin-bottom: 6px; }
.aifo-login-v2 .promo-b .promo-desc{ max-width: 466px; margin: 0 auto; }


/* ---------------- demo state picker ---------------- */
.aifo-login-v2 .fab-wrap{
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.aifo-login-v2 .fab{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15,13,12,.92);
  color: #f7f4ef;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.44);
  backdrop-filter: blur(10px);
  transition: border-color .18s, background-color .18s;
}
.aifo-login-v2 .fab:hover{ border-color: rgba(255,138,20,.55); background: rgba(20,16,14,.96); }
.aifo-login-v2 .fab:focus-visible{ outline: 2px solid rgba(255,138,20,.6); outline-offset: 2px; }
.aifo-login-v2 .fab .live{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,138,20,.18);
}
.aifo-login-v2 .fab .chev{ width: 13px; height: 13px; margin: 0; color: rgba(247,244,239,.5); transition: transform .28s var(--ease); }
.aifo-login-v2 .fab.is-open .chev{ transform: rotate(180deg); }

.aifo-login-v2 .fab-panel{
  display: none;
  width: 308px;
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,13,12,.97);
  box-shadow: 0 26px 60px rgba(0,0,0,.52);
  backdrop-filter: blur(14px);
  color: #f7f4ef;
}
.aifo-login-v2 .fab-panel.open{ display: block; animation: fabIn .26s var(--ease); }
@keyframes fabIn{
  from{ opacity: 0; transform: translateY(8px) scale(.98); }
  to{ opacity: 1; transform: none; }
}

.aifo-login-v2 .fab-title{
  padding: 8px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,244,239,.42);
}

.aifo-login-v2 .fab-item{
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background-color .15s;
}
.aifo-login-v2 .fab-item:hover{ background: rgba(255,255,255,.06); }
.aifo-login-v2 .fab-item.is-on{ background: rgba(255,138,20,.16); }
.aifo-login-v2 .fab-item .num{
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(255,255,255,.09);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(247,244,239,.72);
}
.aifo-login-v2 .fab-item.is-on .num{ background: var(--brand); color: #1b1006; }
.aifo-login-v2 .fab-item .lbl b{ display: block; font-size: 12.5px; font-weight: 600; }
.aifo-login-v2 .fab-sep{ height: 1px; margin: 6px 8px; background: rgba(255,255,255,.09); }
.aifo-login-v2 .fab-action .num{ background: rgba(255,255,255,.07); color: rgba(247,244,239,.62); font-size: 12px; }
.aifo-login-v2 .fab-action:hover .num{ background: rgba(255,138,20,.18); color: var(--brand-text); }
.aifo-login-v2 .fab-item .lbl small{ display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; color: rgba(247,244,239,.5); }

/* ---------------- AIFO 2.0 notice modal ---------------- */
.aifo-login-v2.is-locked{ overflow: hidden; }

.aifo-login-v2 .modal-layer{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3,2,1,.66);
  backdrop-filter: blur(3px);
}
.aifo-login-v2 .modal-layer.show{ display: flex; }

/* Override theme Bootstrap `.modal { display:none }` — notice dialog lives inside `.modal-layer`. */
.aifo-login-v2 .modal-layer > .modal{
  display: block;
  position: relative;
  inset: auto;
  z-index: auto;
  overflow: visible;
  pointer-events: auto;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 26px 26px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09);
  background: var(--card-bg);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  animation: modalIn .34s var(--ease);
}
.aifo-login-v2[data-theme="light"] .modal-layer > .modal{
  border-color: rgba(27,16,6,.08);
  box-shadow: 0 30px 70px rgba(87,53,10,.22);
}

@keyframes modalIn{
  from{ opacity: 0; transform: translateY(14px) scale(.985); }
  to{ opacity: 1; transform: none; }
}

.aifo-login-v2 .modal-layer > .modal:focus{ outline: none; }
.aifo-login-v2 .modal-layer > .modal .btn:focus-visible{ outline: 2px solid rgba(255,138,20,.5); outline-offset: 3px; }

.aifo-login-v2 .modal-grab{ display: none; }

.aifo-login-v2 .m-scheme{
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aifo-login-v2 .modal-copy{ min-height: 120px; }

@keyframes modalSwap{
  from{ opacity: .4; transform: translateY(8px); }
  to{ opacity: 1; transform: none; }
}
.aifo-login-v2 .modal-layer > .modal.is-swap{ animation: modalSwap .28s var(--ease); }

.aifo-login-v2 .m-kicker{
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.aifo-login-v2 .m-note + .m-kicker{ margin-top: 16px; }
.aifo-login-v2 .modal-copy > .m-note:first-child{ margin-top: 4px; }

.aifo-login-v2 .m-title{
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.3px;
  color: var(--text-strong);
}
.aifo-login-v2 .m-sub{
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-75);
}

.aifo-login-v2 .m-list{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aifo-login-v2 .m-item{ display: flex; align-items: flex-start; gap: 12px; }
.aifo-login-v2 .m-ico{
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  margin-top: 1px;
}
.aifo-login-v2 .m-ico svg{ width: 16px; height: 16px; }
.aifo-login-v2 .m-txt b{
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-strong);
}
.aifo-login-v2 .m-txt span{
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.aifo-login-v2 .m-note{
  margin: 20px 0 0;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--brand-border);
  background: var(--brand-soft);
}
.aifo-login-v2 .m-note b{
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-strong);
}
.aifo-login-v2 .m-note span{
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-75);
}

.aifo-login-v2 .modal-layer > .modal .btn{ margin-top: 20px; min-height: 46px; font-size: 16px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1280px){
  .aifo-login-v2 .shell{
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    justify-items: center;
    padding-top: 72px;
  }
  .aifo-login-v2 .auth, .aifo-login-v2 .promo{ justify-self: center; }
}

/* mobile form: below 750px the whole page switches */
@media (max-width: 750px){
  .aifo-login-v2 .promo{ display: none; }

  .aifo-login-v2 .shell{
    display: block;
    max-width: 460px;
    padding: 58px 16px calc(88px + env(safe-area-inset-bottom));
  }
  .aifo-login-v2 .auth{ max-width: none; }


  .aifo-login-v2 .brand{ width: 96px; height: 25px; margin-bottom: 16px; }
  .aifo-login-v2 h1{ font-size: 22px; letter-spacing: -.4px; }
  .aifo-login-v2 .sub{ margin-bottom: 20px; font-size: 13px; }
  .aifo-login-v2 .section-label{ margin-bottom: 8px; }

  .aifo-login-v2 .switcher{ gap: 10px; }
  .aifo-login-v2 .acct{ border-radius: 13px; }
  .aifo-login-v2 .acct-head{ padding: 14px; gap: 12px; }
  .aifo-login-v2 .acct-title{ font-size: 14.5px; }
  .aifo-login-v2 .acct-desc{ font-size: 12px; }
  .aifo-login-v2 .acct-body{ padding: 0 14px 16px; }

  .aifo-login-v2 label.cap{ font-size: 13px; margin-bottom: 7px; }
  .aifo-login-v2 .field{ margin-bottom: 14px; }
  .aifo-login-v2 .field[data-field="terms"]{ margin-bottom: 18px; }
  .aifo-login-v2 .btn{ min-height: 48px; font-size: 16px; }
  .aifo-login-v2 .divider{ margin: 18px 0 16px; font-size: 13px; }
  .aifo-login-v2 .btn-google{ grid-template-columns: 56px minmax(0,1fr); font-size: 15px; }

  .aifo-login-v2 .modal-layer{ padding: 0; align-items: flex-end; }
  .aifo-login-v2 .modal-layer > .modal{
    max-width: none;
    max-height: 88dvh;
    padding: 0 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    animation: sheetIn .36s var(--ease);
  }
  @keyframes sheetIn{
    from{ transform: translateY(100%); }
    to{ transform: none; }
  }
  .aifo-login-v2 .modal-grab{
    display: block;
    width: 38px;
    height: 4px;
    margin: 10px auto 16px;
    border-radius: 999px;
    background: rgba(247,244,239,.22);
  }
  .aifo-login-v2[data-theme="light"] .modal-grab{ background: rgba(27,16,6,.16); }
  .aifo-login-v2 .m-title{ font-size: 19px; }
  .aifo-login-v2 .modal-layer > .modal .btn{ margin-top: 18px; }

  .aifo-login-v2 .fab-wrap{ left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .aifo-login-v2 .fab-panel{ width: min(308px, calc(100vw - 28px)); }
}

@media (prefers-reduced-motion: reduce){
  .aifo-login-v2 *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.aifo-login-v2 [hidden]{display:none!important}
.aifo-login-v2 .login-status{margin:12px 0;font-size:14px;line-height:1.5;color:var(--brand-text);overflow-wrap:anywhere}
.aifo-login-v2 .login-status[data-error="true"]{color:var(--danger)}
/* Theme reset sets `dialog { display:block }`, so closed native dialogs must be hidden explicitly. */
.aifo-login-v2 dialog:not([open]){display:none!important}
.aifo-login-v2 dialog[open]{display:block;max-width:calc(100vw - 32px);margin:auto;border:0;padding:0}
.aifo-login-v2 dialog.login-v2-sheet{color:var(--text-strong);background:var(--card-bg);border:1px solid var(--hairline);border-radius:20px;padding:24px;width:min(440px,calc(100vw - 32px));max-height:90dvh;overflow:auto}
.aifo-login-v2 dialog.login-v2-sheet::backdrop{background:#000b}
.aifo-login-v2 dialog.login-v2-sheet button{margin-top:16px}
.aifo-login-v2 dialog.login-v2-google-sheet{padding:0;border-radius:20px;border:1px solid rgba(255,255,255,.09);background:radial-gradient(circle at top left,rgba(66,133,244,.10),transparent 42%),#211d1e;box-shadow:0 34px 100px rgba(0,0,0,.70);overflow:hidden}
.aifo-login-v2 dialog.login-v2-google-sheet::backdrop{background:rgba(0,0,0,.8);backdrop-filter:blur(6px)}
.aifo-login-v2[data-theme="light"] dialog.login-v2-google-sheet{border:1px solid var(--hairline);background:var(--card-bg);box-shadow:0 34px 100px rgba(0,0,0,.18)}
.aifo-login-v2[data-theme="light"] dialog.login-v2-google-sheet::backdrop{background:rgba(7,4,0,.45);backdrop-filter:blur(4px)}
.aifo-login-v2 dialog.login-v2-google-sheet button{margin-top:0}
.aifo-login-v2 .google-sheet__head{position:relative;padding:20px 24px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.aifo-login-v2[data-theme="light"] .google-sheet__head{border-bottom-color:var(--hairline)}
.aifo-login-v2 .google-sheet__close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.045);color:rgba(255,255,255,.7);cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.aifo-login-v2 .google-sheet__close:hover{border-color:rgba(66,133,244,.35);background:rgba(66,133,244,.10);color:#fff}
.aifo-login-v2[data-theme="light"] .google-sheet__close{border-color:var(--hairline);background:var(--surface-hover);color:var(--text-75)}
.aifo-login-v2[data-theme="light"] .google-sheet__close:hover{border-color:rgba(66,133,244,.35);color:#4285f4}
.aifo-login-v2 .google-sheet__title-row{display:flex;align-items:center;gap:12px;padding-right:40px}
.aifo-login-v2 .google-sheet__logo{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:#fff}
.aifo-login-v2[data-theme="light"] .google-sheet__logo{border-color:var(--hairline);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.aifo-login-v2 .google-sheet__title{font-size:19px;line-height:1;color:var(--text-strong);font-weight:600}
@media (min-width:640px){.aifo-login-v2 .google-sheet__title{font-size:20px}}
.aifo-login-v2 .google-sheet__desc{max-width:340px;margin:8px 0 20px;font-size:13px;line-height:1.55;color:rgba(255,255,255,.5)}
.aifo-login-v2[data-theme="light"] .google-sheet__desc{color:var(--text-75)}
@media (min-width:640px){.aifo-login-v2 .google-sheet__desc{font-size:14px}}
.aifo-login-v2 .google-sheet__body{padding:20px 24px 24px}
@media (min-width:640px){.aifo-login-v2 .google-sheet__head{padding:22px 24px 0}.aifo-login-v2 .google-sheet__body{padding:20px 24px 24px}}
.aifo-login-v2 .google-sheet__mount{position:relative;margin:0 auto;width:100%;max-width:400px;min-height:44px}
.aifo-login-v2 .google-sheet__mount.is-preparing .google-sheet__button{pointer-events:none;opacity:0}
.aifo-login-v2 .google-sheet__preparing{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:6px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);font-size:14px;color:rgba(255,255,255,.65)}
.aifo-login-v2[data-theme="light"] .google-sheet__preparing{border-color:var(--hairline);background:var(--surface-hover);color:var(--text-75)}
.aifo-login-v2 .google-sheet__mount:not(.is-preparing) .google-sheet__preparing{display:none}
.aifo-login-v2 .google-sheet__button{min-height:44px;opacity:1;transition:opacity .15s}
.aifo-login-v2 .google-sheet__spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.2);border-top-color:rgba(255,255,255,.75);border-radius:50%;animation:login-v2-google-spin .7s linear infinite}
.aifo-login-v2[data-theme="light"] .google-sheet__spinner{border-color:rgba(27,16,6,.12);border-top-color:var(--text-75)}
@keyframes login-v2-google-spin{to{transform:rotate(360deg)}}
.aifo-login-v2 .google-sheet__status{margin:12px 0 0}
.aifo-login-v2 .google-sheet__foot{margin-top:20px;display:flex;justify-content:flex-end}
.aifo-login-v2 .google-sheet__cancel{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:0 20px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.025);font-size:14px;font-weight:600;color:rgba(255,255,255,.65);cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.aifo-login-v2 .google-sheet__cancel:hover{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.055);color:#fff}
.aifo-login-v2[data-theme="light"] .google-sheet__cancel{border-color:var(--hairline);background:var(--surface-hover);color:var(--text-75)}
.aifo-login-v2[data-theme="light"] .google-sheet__cancel:hover{border-color:rgba(66,133,244,.35);background:var(--surface-hover);color:var(--text-strong)}
.aifo-login-v2 .google-sheet__cancel:focus-visible{outline:2px solid #4285f4;outline-offset:2px}
@media (min-width:640px){.aifo-login-v2 .google-sheet__cancel{width:auto;min-width:96px}}
.aifo-login-v2 dialog.login-v2-oauth-terms-sheet{padding:0;width:min(520px,calc(100vw - 24px));border-radius:20px;border:1px solid rgba(255,255,255,.09);background:radial-gradient(circle at top left,rgba(255,138,20,.08),transparent 38%),#211d1e;box-shadow:0 34px 100px rgba(0,0,0,.70);overflow:hidden}
.aifo-login-v2 dialog.login-v2-oauth-terms-sheet::backdrop{background:rgba(0,0,0,.8);backdrop-filter:blur(6px)}
.aifo-login-v2[data-theme="light"] dialog.login-v2-oauth-terms-sheet{border:1px solid var(--hairline);background:var(--card-bg);box-shadow:0 34px 100px rgba(0,0,0,.18)}
.aifo-login-v2 .oauth-terms__head{position:relative;padding:20px 24px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.aifo-login-v2[data-theme="light"] .oauth-terms__head{border-bottom-color:var(--hairline)}
.aifo-login-v2 .oauth-terms__close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.045);color:rgba(255,255,255,.7);cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.aifo-login-v2 .oauth-terms__close:hover{border-color:rgba(255,138,20,.30);background:rgba(255,138,20,.10);color:#fff}
.aifo-login-v2[data-theme="light"] .oauth-terms__close{border-color:var(--hairline);background:var(--surface-hover);color:var(--text-75)}
.aifo-login-v2 .oauth-terms__title-row{display:flex;align-items:center;gap:12px;padding-right:40px}
.aifo-login-v2 .oauth-terms__shield{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;border:1px solid rgba(255,138,20,.25);background:rgba(255,138,20,.10);color:#ff8a14;box-shadow:0 0 24px rgba(255,138,20,.10)}
.aifo-login-v2 .oauth-terms__title{font-size:19px;line-height:1;font-weight:600;color:var(--text-strong)}
@media (min-width:640px){.aifo-login-v2 .oauth-terms__title{font-size:20px}.aifo-login-v2 .oauth-terms__head{padding:22px 24px 0}}
.aifo-login-v2 .oauth-terms__desc{max-width:390px;margin:8px 0 20px;font-size:13px;line-height:1.55;color:rgba(255,255,255,.5)}
.aifo-login-v2[data-theme="light"] .oauth-terms__desc{color:var(--text-75)}
@media (min-width:640px){.aifo-login-v2 .oauth-terms__desc{font-size:14px}}
.aifo-login-v2 .oauth-terms__body{padding:20px 24px 24px}
.aifo-login-v2 .oauth-terms__docs{display:grid;gap:10px}
.aifo-login-v2 .oauth-terms__doc{display:flex;align-items:center;gap:12px;min-height:62px;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.20);color:var(--text-strong);text-decoration:none;transition:border-color .15s,background .15s}
@media (min-width:640px){.aifo-login-v2 .oauth-terms__doc{padding:12px 16px}}
.aifo-login-v2 .oauth-terms__doc:hover{border-color:rgba(255,138,20,.35);background:rgba(255,138,20,.055)}
.aifo-login-v2[data-theme="light"] .oauth-terms__doc{border-color:var(--hairline);background:var(--surface-hover)}
.aifo-login-v2[data-theme="light"] .oauth-terms__doc:hover{border-color:rgba(255,138,20,.35);background:var(--surface-hover)}
.aifo-login-v2 .oauth-terms__doc:focus-visible{outline:2px solid #ff8a14;outline-offset:2px}
.aifo-login-v2 .oauth-terms__doc-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:10px;background:rgba(255,255,255,.055);color:rgba(255,255,255,.65);transition:background .15s,color .15s}
.aifo-login-v2 .oauth-terms__doc:hover .oauth-terms__doc-icon{background:rgba(255,138,20,.10);color:#ff8a14}
.aifo-login-v2[data-theme="light"] .oauth-terms__doc-icon{background:var(--surface-hover);color:var(--text-75)}
.aifo-login-v2 .oauth-terms__doc-copy{flex:1;min-width:0}
.aifo-login-v2 .oauth-terms__doc-label{display:block;font-size:14px;font-weight:600;line-height:1.25;color:rgba(255,255,255,.9)}
.aifo-login-v2[data-theme="light"] .oauth-terms__doc-label{color:var(--text-strong)}
.aifo-login-v2 .oauth-terms__doc-hint{display:block;margin-top:2px;font-size:12px;line-height:1.33;color:rgba(255,255,255,.4)}
.aifo-login-v2[data-theme="light"] .oauth-terms__doc-hint{color:var(--text-75)}
.aifo-login-v2 .oauth-terms__doc-external{flex-shrink:0;color:rgba(255,255,255,.30);transition:color .15s}
.aifo-login-v2 .oauth-terms__doc:hover .oauth-terms__doc-external{color:#ff8a14}
.aifo-login-v2 .oauth-terms__accept{margin-top:16px;padding:14px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.07);background:rgba(0,0,0,.15)}
.aifo-login-v2[data-theme="light"] .oauth-terms__accept{border-color:var(--hairline);background:var(--surface-hover)}
.aifo-login-v2 .oauth-terms__check{display:flex;align-items:flex-start;gap:12px;font-size:13px;line-height:1.55;color:rgba(255,255,255,.75);cursor:pointer}
.aifo-login-v2[data-theme="light"] .oauth-terms__check{color:var(--text-75)}
@media (min-width:640px){.aifo-login-v2 .oauth-terms__check{font-size:14px}}
.aifo-login-v2 .oauth-terms__check input{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:#F98715}
.aifo-login-v2 .oauth-terms__check strong{font-weight:600;color:var(--text-strong)}
.aifo-login-v2 .oauth-terms__security{display:flex;align-items:flex-start;gap:8px;margin:12px 0 0;font-size:12px;line-height:1.5;color:rgba(255,255,255,.4)}
.aifo-login-v2 .oauth-terms__security svg{flex-shrink:0;margin-top:1px;color:rgba(255,138,20,.70)}
.aifo-login-v2[data-theme="light"] .oauth-terms__security{color:var(--text-75)}
.aifo-login-v2 .oauth-terms__foot{margin-top:20px;display:flex;flex-direction:column-reverse;gap:10px}
@media (min-width:640px){.aifo-login-v2 .oauth-terms__foot{flex-direction:row;justify-content:flex-end;gap:12px}}
.aifo-login-v2 .oauth-terms__cancel{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.025);font-size:14px;font-weight:600;color:rgba(255,255,255,.65);cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.aifo-login-v2 .oauth-terms__cancel:hover{border-color:rgba(255,255,255,.20);background:rgba(255,255,255,.055);color:#fff}
.aifo-login-v2[data-theme="light"] .oauth-terms__cancel{border-color:var(--hairline);background:var(--surface-hover);color:var(--text-75)}
.aifo-login-v2 .oauth-terms__confirm{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;margin-top:0;padding:0 20px;border:0;border-radius:10px;font-size:14px;font-weight:600}
@media (min-width:640px){.aifo-login-v2 .oauth-terms__cancel{width:auto}.aifo-login-v2 .oauth-terms__confirm{width:auto;min-width:230px}}
.aifo-login-v2 .oauth-terms__confirm.is-busy{opacity:.85;pointer-events:none}
.aifo-login-v2 .oauth-terms__confirm-busy{display:inline-flex;align-items:center;gap:8px}
.aifo-login-v2 .oauth-terms__confirm-busy[hidden],.aifo-login-v2 .oauth-terms__confirm-label[hidden]{display:none!important}
.aifo-login-v2 .shell{grid-template-columns:minmax(0,416px) minmax(0,680px);gap:clamp(32px,8vw,152px)}
@media(max-width:1280px){.aifo-login-v2 .shell{grid-template-columns:minmax(0,1fr)}}
.aifo-login-v2 .btn-primary:hover{background:#F9A215}
.aifo-login-v2 .acct-head:focus-visible,.aifo-login-v2 button:focus-visible{outline:2px solid #F98715;outline-offset:3px}
@media(max-width:750px){.aifo-login-v2 .modal-grab{display:block}}
.aifo-app-bridge{position:fixed;left:0;top:0;width:1px;height:1px;border:0;opacity:0;pointer-events:none}

/* Login desktop design 17118:66196 and announcement 17118:66686. */
.aifo-login-v2[data-theme="dark"] {
  --page-bg: #070707;
}

.aifo-login-v2 .shell {
  max-width: 1440px;
  grid-template-columns: minmax(0, 480px) minmax(0, 680px);
  gap: clamp(32px, 9.7vw, 140px);
  padding: 84px 20px 84px clamp(24px, 8.3vw, 120px);
}

.aifo-login-v2 .auth { max-width: 480px; }
.aifo-login-v2 .brand { width: 104px; height: auto; margin-bottom: 12px; }
.aifo-login-v2 .auth h1 { font-size: 24px; font-weight: 500; }
.aifo-login-v2 .auth .sub { font-weight: 400; line-height: 16px; letter-spacing: -.14px; margin-bottom: 14px; text-align: start; }
.aifo-login-v2 .section-label { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.aifo-login-v2 .switcher { gap: 16px; }
.aifo-login-v2 .acct-head .dot { display: none; }
.aifo-login-v2 .acct-head { padding: 24px; }
.aifo-login-v2 .acct.is-active { border-radius: 40px; }
.aifo-login-v2[data-theme="dark"] .acct {
  border-color: #333;
  border-radius: 20px;
  background: linear-gradient(#292824, #1e1d1b 55%, #1a1917);
}

.aifo-login-v2[data-theme="dark"] .acct.is-active {
  border-color: #2a1a0c;
  border-radius: 40px;
  background:
    url("../../images/pages/login-v2/account-glow.svg") left -171px top -155px no-repeat,
    url("../../images/pages/login-v2/account-glow.svg") right -150px bottom -167px no-repeat,
    #070400;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.aifo-login-v2 .acct-chevron {
  flex: 0 0 32px;
  height: 32px;
  margin-inline-start: auto;
  background: url("../../images/pages/login-v2/account-chevron-down.svg") center no-repeat;
}

.aifo-login-v2 .acct.is-active .acct-chevron {
  background-image: url("../../images/pages/login-v2/account-chevron-up.svg");
}

.aifo-login-v2[data-theme="dark"] .modal-layer > .modal {
  /* Designer artwork includes its own border; retain transparent border space. */
  border-color: transparent;
  background: url("../../images/pages/login-v2/login_bg_tip.png") center / 100% 100% no-repeat;
  background-origin: border-box;
}
.aifo-login-v2 .acct-body .field { margin-bottom: 8px; }
.aifo-login-v2 .acct-body .btn-google { margin-top: 0; }
.aifo-login-v2 .acct-body .divider { margin: 12px 0; }

.aifo-login-v2 .promo { gap: 20px; }
.aifo-login-v2 .promo-card { border-radius: 20px; }
.aifo-login-v2[data-theme="dark"] .promo-card { background: #0e0e0e; }
.aifo-login-v2 .promo-a,
.aifo-login-v2 .promo-b,
.aifo-login-v2 .promo-small { min-height: 250px; }
.aifo-login-v2 .promo-b { position: relative; isolation: isolate; justify-content: flex-end; }
.aifo-login-v2 .promo-b .art-wide { position: absolute; z-index: -1; top: 0; inset-inline: 0; }
.aifo-login-v2 .promo-b .promo-foot { position: relative; }
.aifo-login-v2 .promo-subtitle { margin: 6px 0 4px; color: var(--text-muted); font-size: 14px; font-weight: 600; line-height: 16px; }
.aifo-login-v2 .promo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.aifo-login-v2 .promo-small { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 20px; }
.aifo-login-v2 .promo-avatars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 24px));
  align-content: center;
  gap: 16px;
  min-height: 126px;
  margin-bottom: auto;
  mask-image: radial-gradient(ellipse, #000 37%, transparent 80%);
}
.aifo-login-v2 .promo-avatars img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.aifo-login-v2 .promo-avatars img:first-child,
.aifo-login-v2 .promo-avatars img:nth-child(12) { grid-column: 2; }
.aifo-login-v2 .promo-support {
  margin-bottom: auto;
  flex: none;
}

.aifo-login-v2 .promo-support img { display: block; }

.aifo-login-v2 .modal-layer { background: rgba(0, 0, 0, .7); }
.aifo-login-v2 .modal-layer > .modal { max-width: 440px; padding: 24px 24px 32px; border-radius: 40px; }
.aifo-login-v2 .m-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #f98715 url("../../images/pages/login-v2/notice-logo.svg") center no-repeat;
}
.aifo-login-v2 .m-title { margin: 0 auto 16px; max-width: 290px; text-align: center; font-size: 20px; line-height: 24px; }
.aifo-login-v2 .m-note { margin: 0; border-radius: 16px; }
.aifo-login-v2 .m-note b { color: var(--brand-text); }
.aifo-login-v2 .m-note b::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-inline-end: 4px;
  vertical-align: text-bottom;
  background: url("../../images/pages/login-v2/notice-info.svg") center / contain no-repeat;
}
.aifo-login-v2 .m-kicker { margin-top: 16px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.aifo-login-v2 .m-ico { width: 40px; height: 40px; background-position: center; background-repeat: no-repeat; }
.aifo-login-v2 .m-ico--password { background-image: url("../../images/pages/login-v2/notice-password.svg"); }
.aifo-login-v2 .m-ico--dashboard { background-image: url("../../images/pages/login-v2/notice-dashboard.svg"); }
.aifo-login-v2 .m-ico--card { background-image: url("../../images/pages/login-v2/notice-card.svg"); }

@media (max-width: 980px) {
  .aifo-login-v2 .shell { grid-template-columns: minmax(0, 680px); padding-inline: 24px; }
}

@media (max-width: 750px) {
  .aifo-login-v2 .shell { padding-top: 64px; }
  .aifo-login-v2 .acct-head { padding: 16px; }
  .aifo-login-v2 .modal-layer > .modal { border-radius: 24px; }
}

.aifo-login-v2 .promo-a { padding: 0 0 0 20px; }
.aifo-login-v2 .promo-art { flex: 0 0 min(52%, 340px); }
.aifo-login-v2 .promo-title { font-size: 16px; line-height: 20px; }
.aifo-login-v2 .promo-desc { font-size: 12px; line-height: 14px; }
.aifo-login-v2 .promo-small .promo-title { margin-top: 8px; }
.aifo-login-v2 .acct-body .btn-google {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-height: 0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -.14px;
}

.aifo-login-v2[data-theme="dark"] .btn-google {
  background: #141414;
  border-color: #333;
  color: #fff;
}

.aifo-login-v2[data-theme="dark"] .btn-google:hover {
  background: #242424;
  border-color: #333;
}
.aifo-login-v2 .btn-google__icon { display: grid; place-items: center; flex: 0 0 25px; height: 25px; }
.aifo-login-v2 .btn-google__icon img { width: 19px; height: 19px; margin: 0; }

.aifo-login-v2 .v2-submit { margin-top: 18px; }
.aifo-login-v2 .login-mobile-header { display: none; }

/* Mobile login 17118:68369, 17118:69037, 17118:69341 and notice 17118:69552. */
@media (max-width: 750px) {
  .aifo-login-v2 .login-mobile-header {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--hairline);
  }

  .aifo-login-v2 .login-mobile-home { margin-inline-end: auto; flex-shrink: 0; }
  .aifo-login-v2 .login-mobile-header img { display: block; }
  .aifo-login-v2[data-theme="light"] .login-mobile-home img {
    content: url("../../images/pages/login-v2/prototype-1-light.svg");
  }
  .aifo-login-v2 .login-mobile-challenge {
    padding: 8px 12px;
    border-radius: 8px;
    background: #F98715;
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    text-decoration: none;
  }
  .aifo-login-v2 .login-mobile-challenge:hover { background: #F9A215; }
  .aifo-login-v2 .shell { padding: 24px 12px calc(12px + env(safe-area-inset-bottom)); }
  .aifo-login-v2 .brand { width: 100px; height: 26px; margin-bottom: 8px; }
  .aifo-login-v2 .auth h1 { margin-bottom: 8px; font-size: 20px; line-height: 24px; letter-spacing: normal; }
  .aifo-login-v2 .auth .sub { margin-bottom: 16px; text-align: center; font-size: 14px; line-height: 16px; }
  .aifo-login-v2[data-theme="dark"] .auth .sub { color: #666; }
  .aifo-login-v2 .section-label { line-height: 16px; letter-spacing: -.14px; }
  .aifo-login-v2 .switcher { gap: 16px; }
  .aifo-login-v2 .switcher:has([data-acct="v2"].is-active) { gap: 12px; }

  .aifo-login-v2 .acct,
  .aifo-login-v2 .acct.is-active,
  .aifo-login-v2[data-theme="dark"] .acct.is-active { border-radius: 20px; }
  .aifo-login-v2 .acct-head { padding: 16px; gap: 8px; }
  .aifo-login-v2 .acct-title { font-size: 18px; line-height: 22px; font-weight: 500; letter-spacing: -.18px; }
  .aifo-login-v2 .acct-desc { display: block; margin-top: 4px; font-size: 14px; line-height: 16px; font-weight: 400; letter-spacing: -.14px; }
  .aifo-login-v2 .badge.upgrade { padding: 4px 6px; border: 0; border-radius: 4px; font-size: 12px; font-weight: 400; line-height: 14px; letter-spacing: -.12px; }

  .aifo-login-v2 .acct-body { padding: 0 16px 16px; }
  .aifo-login-v2 .acct.is-active .acct-body { border-top: 0; }
  .aifo-login-v2 .acct-body form { padding-top: 0; }
  .aifo-login-v2 .acct-body .login-status:empty { display: none; }
  .aifo-login-v2[data-theme="dark"] .acct-body { --input-border: #333; }
  .aifo-login-v2 .acct-body label.cap { margin-bottom: 4px; font-size: 15px; font-weight: 400; line-height: 20px; }
  .aifo-login-v2 .acct-body input:is([type="text"], [type="email"], [type="password"]) {
    height: 45px;
    padding-inline-start: 12px;
    border-radius: 12px;
    font-size: 14px;
    letter-spacing: -.14px;
  }
  .aifo-login-v2[data-theme="dark"] .acct-body input:is([type="text"], [type="email"], [type="password"]) {
    background-color: #141414;
  }
  .aifo-login-v2 .acct-body .eye { inset-inline-end: 4px; }
  .aifo-login-v2 .acct-body .eye svg { width: 16px; height: 16px; }
  .aifo-login-v2 .v2-submit { margin-top: 16px; }
  .aifo-login-v2 .acct-body .divider { margin: 8px 0; font-size: 12px; }
  .aifo-login-v2 .acct-body .btn-primary { min-height: 46px; border-radius: 12px; font-weight: 500; }
  .aifo-login-v2 .acct-body .row-between { margin: 8px 0 16px; }
  .aifo-login-v2 .acct-body .check.sm { align-items: center; gap: 3px; }
  .aifo-login-v2 .acct-body .check.sm input { width: 15px; height: 15px; }
  .aifo-login-v2 .acct-body .check.sm input::after { width: 5px; height: 8px; left: 4px; top: 1px; }

  .aifo-login-v2 .modal-layer { align-items: center; padding: 16px; }
  .aifo-login-v2 .modal-layer > .modal {
    max-width: 340px;
    max-height: calc(100dvh - 32px);
    padding: 16px 16px 24px;
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    animation-name: modalIn;
  }

  .aifo-login-v2[data-theme="dark"] .modal-layer > .modal {
    border-color: transparent;
    /* Scale the entire artwork so its four border edges remain visible. */
    border-radius: 31px;
  }
  .aifo-login-v2 .modal-layer .modal-grab { display: none; }
  .aifo-login-v2 .m-logo { width: 48px; height: 48px; border-radius: 11.2px; background-size: 29px auto; }
  .aifo-login-v2 .m-title { font-size: 16px; line-height: 20px; font-weight: 700; }
  .aifo-login-v2 .m-note { padding: 12px; }
  .aifo-login-v2 .m-note b { font-size: 14px; line-height: 16px; }
  .aifo-login-v2 .m-note span { margin-top: 6px; font-size: 12px; line-height: 14px; }
  .aifo-login-v2[data-theme="dark"] .m-note {
    background: linear-gradient(rgba(249, 135, 21, .2), rgba(19, 10, 1, .2));
    border-color: rgba(249, 135, 21, .2);
  }
  .aifo-login-v2[data-theme="dark"] .m-note span { color: rgba(249, 135, 21, .6); }
  .aifo-login-v2 .m-kicker { margin-bottom: 12px; line-height: 14px; letter-spacing: -.12px; }
  .aifo-login-v2 .m-item { align-items: center; }
  .aifo-login-v2 .m-ico { width: 36px; height: 36px; border: 0; background-size: 21.6px; }
  .aifo-login-v2 .m-txt b { font-size: 14px; font-weight: 500; line-height: 16px; }
  .aifo-login-v2 .m-txt span { margin-top: 6px; font-size: 12px; font-weight: 400; line-height: 14px; letter-spacing: -.12px; }
  .aifo-login-v2 .modal-layer > .modal .btn { min-height: 48px; margin-top: 24px; font-weight: 500; }
}
