/*
 * X2 AUTH — FINAL GEOMETRY
 *
 * Provider order:
 * Google
 * Apple
 * divider
 * Sign in | Create account
 * form
 *
 * No dynamic CTA width feedback.
 */

.home-auth {
  --x2-auth-width: 400px;
}


/* ----------------------------------------------------------
   COMMON WIDTH
   ---------------------------------------------------------- */

.home-auth .google-signin-host,
.home-auth .social-auth-button.social-apple,
.home-auth .auth-divider,
.home-auth .home-auth-modes,
.home-auth .email-form,
.home-auth .auth-status,
.home-auth .auth-legal {
  width: min(var(--x2-auth-width), 100%) !important;
  max-width: var(--x2-auth-width) !important;

  margin-left: 0 !important;
  margin-right: auto !important;

  box-sizing: border-box !important;
}


/* ----------------------------------------------------------
   GOOGLE

   Never clip Google's iframe.
   Google itself owns the pill border.
   ---------------------------------------------------------- */

.home-auth .google-signin-host {
  position: relative !important;

  min-height: 32px !important;

  padding: 0 !important;
  margin-bottom: 8px !important;

  overflow: visible !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
}






/* ----------------------------------------------------------
   APPLE
   ---------------------------------------------------------- */

.home-auth .social-auth-button.social-apple {
  margin-bottom: 0 !important;
  border-radius: 999px !important;
}


/* ----------------------------------------------------------
   DIVIDER
   ---------------------------------------------------------- */

.home-auth .auth-divider {
  margin-top: 22px !important;
  margin-bottom: 18px !important;
}


/* ----------------------------------------------------------
   SIGN IN / CREATE ACCOUNT

   Two separate CTA.
   Same geometry.
   Side by side.
   ---------------------------------------------------------- */




.home-auth .home-auth-mode {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-width: 0 !important;

  height: 40px !important;
  min-height: 40px !important;

  margin: 0 !important;
  padding: 0 12px !important;

  border: 1px solid #cfd4db !important;
  border-radius: 5px !important;

  background: #fff !important;
  color: #171a21 !important;

  box-shadow: none !important;

  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 500 !important;

  box-sizing: border-box !important;
  cursor: pointer !important;
}


.home-auth .home-auth-mode.is-active {
  border-color: #11172f !important;

  outline: 2px solid #11172f !important;
  outline-offset: 2px !important;

  background: #fff !important;
  color: #11172f !important;
}


/* ----------------------------------------------------------
   FORM
   ---------------------------------------------------------- */

.home-auth .email-field,
.home-auth .email-field input,
.home-auth .email-form > button[type="submit"] {
  width: 100% !important;
  max-width: none !important;

  box-sizing: border-box !important;
}


/* ----------------------------------------------------------
   MOBILE / TABLET

   Same structure. No stacking of mode CTA.
   ---------------------------------------------------------- */

@media (max-width: 780px) {

  .home-auth .google-signin-host,
  .home-auth .social-auth-button.social-apple,
  .home-auth .auth-divider,
  .home-auth .home-auth-modes,
  .home-auth .email-form,
  .home-auth .auth-status,
  .home-auth .auth-legal {
    width: min(400px, 100%) !important;
    max-width: 400px !important;
  }

  
}


/* ==========================================================
   GOOGLE FINAL OWNERSHIP BOUNDARY

   X2 owns ONLY the host geometry.
   Google owns wrapper + iframe + rendered button.
   ========================================================== */

.home-auth .google-signin-host {
  width: min(400px, 100%) !important;
  max-width: 400px !important;

  min-height: 32px !important;

  margin-left: 0 !important;
  margin-right: auto !important;
  margin-bottom: 8px !important;

  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;

  overflow: visible !important;

  box-sizing: border-box !important;
}



/* ==========================================================
   AUTH MODE CTA — FINAL

   Sign in
   Create account

   Separate rows. Same width and geometry.
   ========================================================== */

.home-auth .home-auth-modes {
  display: flex !important;
  flex-direction: column !important;

  width: min(400px, 100%) !important;
  max-width: 400px !important;

  gap: 8px !important;

  margin: 0 0 18px !important;
  padding: 0 !important;
}

.home-auth .home-auth-mode {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  box-sizing: border-box !important;
}

@media (max-width: 780px) {
  .home-auth .home-auth-modes {
    display: flex !important;
    flex-direction: column !important;

    width: min(400px, 100%) !important;
    max-width: 400px !important;

    gap: 8px !important;
  }
}





/* X2 HOME HEADER GEOMETRY START */

body.x2-home > .site-header {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
}

body.x2-home > .site-header > .brand {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  justify-self: start !important;
  align-self: center !important;

  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.x2-home > .site-header > .desktop-tagline {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  justify-self: center !important;
  align-self: center !important;

  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.x2-home > .site-header > .header-actions.x2-public-home-actions {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  justify-self: end !important;
  align-self: center !important;

  display: flex !important;
  align-items: center !important;

  margin-top: 0 !important;
  margin-bottom: 0 !important;

  visibility: visible !important;
  opacity: 1 !important;
}

body.x2-home > .site-header > .header-actions.x2-public-home-actions > * {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.x2-home > .site-header .x2-language-top {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  align-self: center !important;

  visibility: visible !important;
  opacity: 1 !important;
}

/* X2 HOME HEADER GEOMETRY END */
