/* Replace this by this: (auth.css) */

.auth-page__wrap{
  min-height: 100dvh;
  padding: var(--layout-gutter);
  display: grid;
  justify-items: center;
  align-content: start;
}

/* Module layout */
.beta-module,
.auth-module{
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
  align-items: stretch;
  padding: 0;
}

.auth-block{
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
}

.auth-step{
  display: none;
  flex-direction: column;
  max-width: 420px;
  width: 100%;
}
.auth-step.is-active{ display: flex; }


.auth-title{
  color: var(--ak-dark);
  font-size: var(--a-size);
  font-weight: var(--font1-weight);
  text-align: center;
}



/* Modern auth form look */
.auth-form{
  display: flex;
  flex-direction: column;

  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

/* Email step: stacked column + single-state enforcement */
.auth-emailstep{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* When email step is active: hide the two start buttons */
.auth-form.is-email-step #btn-start-email,
.auth-form.is-email-step #btn-start-google{
  display: none;
}

/* When email step is NOT active: keep email-step hidden (safety) */
.auth-form:not(.is-email-step) #email-step{
  display: none;
}

.auth-label{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label__text{
  font-size: var(--b-size);
  font-weight: var(--font2-weight);
  color: var(--ak-mid-gray);
}

.auth-input{
  width: 100%;
  display: block;
  height: var(--ak-height-pill);
  padding: 0 14px;
  border-radius: var(--ak-radius-pill);
  border: var(--ak-border-subtle);
  background: var(--ak-white);
  font-size: var(--app_font_mid-size);
  font-weight: var(--input-text-weight);
  color: var(--ak-dark);
  outline: none;
  box-sizing: border-box;
}

.auth-input::placeholder{
  color: var(--ak-mid-gray);
  opacity: 0.6;
}

.auth-input:focus-visible{
  border-color: var(--ak-offwhite);
  box-shadow: 0 0 0 4px rgb(0 162 255 / 18%);
}

/* Buttons */
.auth-button{
  width: 100%;
  height: var(--ak-height-pill);
  border-radius: var(--ak-radius-pill);
  border: 1px solid transparent;
  font-size: var(--app_font_mid-size);
  font-weight: var(--font3-weight);
  cursor: pointer;
}

.auth-button--primary{
  background: var(--ak-dark);
  color: var(--ak-white);
}



.auth-button--google{
  background: var(--ak-white);
  color: var(--ak-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: var(--font3-weight);
}

.auth-button--google:active{ transform: translateY(1px); }

/* Keep Google icon, but style the start Google CTA like primary email CTA */
#auth-form .auth-start #btn-google.auth-button--google{
  background: var(--ak-dark);
  color: var(--ak-white);
  border-color: transparent;
}

.auth-google__icon{
  width: 18px;
  height: 18px;
  background: center / contain no-repeat url("/icons/googleicon.svg");
  display: inline-block;
}

/* Disclosure */
.auth-disclosure{
  color: var(--ak-mid-gray);
  font-size: var(--app_font_small-size);
  font-weight: var(--font3-weight);
  text-align: center;
}

.auth-disclosure a{
  color: var(--ak-mid-gray);
  text-decoration: underline;
}

.auth-link{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--ak-dark);
  text-decoration: underline;
  cursor: pointer;
}
.auth-link:focus-visible{
  outline: none;

}
/* Replace nothing. Add this at the end of auth.css */

/* auth step switching */
.auth-start { display: flex; flex-direction: column; gap: 12px; }

/* default: email step hidden (forced) */
.auth-emailstep {
  display: none !important;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* when active */
.auth-form.is-email-step .auth-start { display: none; }
.auth-form.is-email-step .auth-emailstep { display: flex !important; }

/* STACKED inputs, same width as buttons */
.auth-emailgrid{
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}


/* ---------------------------
   AUTH 2-STEP VISIBILITY
   Default: show start buttons only
--------------------------- */

#auth-form .auth-start{
  display: flex;
  flex-direction: column;
  gap: 24px; 
}

#auth-form .auth-emailstep{
  display: none;              /* hidden by default */
  flex-direction: column;
  gap: 12px;
}

/* When email step is active: hide start, show email fields */
#auth-form.is-email-step .auth-start{
  display: none;
}

#auth-form.is-email-step .auth-emailstep{
  display: flex;
}

/* ---------------------------
   INPUTS: STACKED + SAME WIDTH AS BUTTONS
--------------------------- */

#auth-form .auth-input,
#auth-form .auth-button{
  width: 100%;
  max-width: 420px;
}

/* optional: make inputs visually match your pills better */
#auth-form .auth-input{
  height: var(--ak-height-pill);
}

/* ensure no weird inherited divider etc (you don’t want it in this flow) */
#auth-form .auth-divider{
  display: none !important;
}

.auth-or{
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin: 2px auto 2px; /* gives the divider breathing room like your expected */
  color: var(--ak-mid-gray);
  font-size: var(--app_);
  font-weight: var(--font3-weight);
}

.auth-or::before,
.auth-or::after{
  content: "";
  height: 1px;
  background: rgb(0 0 0 / 18%);
  flex: 1 1 auto;
  max-width: 160px;
}

.auth-or > span{
  padding: 0;
}

