/* frontend/auth/auth.css
   Auth pages only. Does NOT touch home UI.
   Uses your CSS variables from main.css if present.
*/

.authBody{
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, var(--brand-soft), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(15,23,42,0.06), transparent 45%),
    var(--bg);
}

/* ===== Make authTopBar look like meTopBar (CSS-only, safe) ===== */
.authTopBar{
  height: 50px;                 /* match Me */
  display: flex;                /* match Me */
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background:
    radial-gradient(circle at 20% 0%, var(--brand-soft), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(15,23,42,0.06), transparent 45%),
    var(--bg);;             /* match Me */
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;        /* remove blur */
}

/* left back button becomes the same feel */
.authBackBtn{
  width: 38px;
  height: 38px;
  border: 0;                    /* match Me (no border) */
  background: transparent;
  border-radius: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
}

/* Use the < glyph but style it like Me's icon weight */
.authBackGlyph{
  font-weight: 900;
  font-size: 18px;
  color: var(--muted);
  transform: translateY(-1px);
}

/* title like Me */
.authTopTitle{
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--text);
}

/* right ghost same size as left button */
.authTopSpacer{
  width: 38px;
  height: 38px;
  opacity: 0; /* keep it invisible but occupying space */
}

/* Page layout */
.authPage{
  max-width: 520px;
  margin: 0 auto;
  padding: 14px var(--pad) 26px;
}

/* Hero */
.authHero{
  padding: 18px 4px 10px;
  text-align: center;
}

.authBrandRow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: var(--shadow-soft);
}

.authBrandIcon{
  color: var(--brand);
  font-size: 16px;
}

.authBrand{
  font-weight: 950;
  font-size: x-large;
  letter-spacing: -0.25px;
  color: var(--brand);
}

.authH1{
  margin: 14px 0 0;
  font-size: medium;
  letter-spacing: -0.25px;
  color: var(--text);
}

.authSub{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Card */
.authCard{
  margin-top: 10px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  backdrop-filter: blur(10px);
}

/* Buttons */
.authGoogleBtn{
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  color: var(--text);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform .06s ease;
}
.authGoogleBtn:active{ transform: scale(0.99); }

.authGoogleIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.authPrimaryBtn{
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
  transition: transform .06s ease, filter .15s ease;
}
.authPrimaryBtn:active{ transform: scale(0.99); }
.authPrimaryBtn:hover{ filter: brightness(0.98); }

.authPrimaryBtn:disabled{
  opacity: 0.7;
  cursor: not-allowed;
}

/* Divider */
.authDivider{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted2);
  font-size: 12px;
}
.authDivider span{
  height: 1px;
  background: var(--line);
  flex: 1;
}
.authDivider em{
  font-style: normal;
  font-weight: 900;
}

/* Form */
.authForm{ display: grid; gap: 8px; text-align: left; }

.authLabel{
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--muted);
}

.authInput{
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  padding: 0 12px;
  outline: none;
}
.authInput:focus{
  border-color: rgba(243, 107, 33, .55);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.authPassRow{
  display: flex;
  align-items: center;
  gap: 10px;
}
.authPassRow .authInput{ flex: 1; }

.authEyeBtn{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* Errors */
.authError{
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.06);
  color: rgba(220, 38, 38, 0.95);
  font-size: 12.5px;
  font-weight: 800;
}

/* Links */
.authLinks{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.authLinks--single{
  justify-content: center;
}
.authLink{
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Trust microcopy */
.authTrust{
  margin-top: 12px;
  color: var(--muted2);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.authTrust i{ color: var(--brand); }
.authDot{ opacity: 0.8; }

/* Responsive polish */
@media (min-width: 700px){
  .authH1{ font-size: 20px; }
  .authCard{ padding: 16px; }
}

/* Google button host (GIS renders inside) */
.googleBtnHost{
  width: 100%;
  display: flex;
  justify-content: center;
}

.googleBtnHost > div{
  width: 100% !important;  /* force full width when GIS wraps */
}

/* helps GIS button match your spacing */
.googleBtnHost iframe{
  width: 100% !important;
}
