/* ==========================================================================
   AirGo Tel — auth pages (/signup, /signin, /forgot-password)
   Full-bleed split layout: brand panel + form. No site header or footer, per
   the prototypes. RESPONSIVE.md: brand panel hidden below 860px, form centred.
   ========================================================================== */

.ag-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}

/* ---------- Brand panel ---------- */

.ag-auth__brand {
  position: relative;
  background: radial-gradient(1000px 600px at 30% -10%, #123C7A, #0B2038 55%, #081726);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ag-auth__brand-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(143, 194, 255, .14) 1.4px, transparent 1.4px);
  background-size: 30px 30px;
  opacity: .5;
  pointer-events: none;
}

.ag-auth__logo { position: relative; display: flex; align-items: center; gap: 11px; }
.ag-auth__logo img { height: 34px; width: auto; flex-shrink: 0; }

.ag-auth__pitch { position: relative; margin-top: auto; max-width: 400px; }

.ag-auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(143, 194, 255, .12);
  border: 1px solid rgba(143, 194, 255, .28);
  color: var(--ag-azure-300);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--ag-radius-pill);
  margin-bottom: 20px;
}

.ag-auth__pitch h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.12;
  color: #fff;
}
.ag-auth__pitch p { font-size: 15.5px; color: var(--ag-on-dark-body); line-height: 1.6; }

.ag-auth__ticks { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.ag-auth__tick {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #DCE7F1;
}
.ag-auth__tick svg { width: 15px; height: 15px; color: var(--ag-success-dot); flex-shrink: 0; }

.ag-auth__services { display: flex; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.ag-auth__service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ag-on-dark-muted);
}
.ag-auth__service span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ag-success-dot);
  flex-shrink: 0;
}

/* ---------- Form panel ---------- */

.ag-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px var(--ag-gutter);
}

.ag-auth__form { width: 100%; max-width: 440px; animation: agIn .4s ease; }
.ag-auth__form--narrow { max-width: 420px; }

.ag-auth__back { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.ag-auth__back a { font-size: 13.5px; font-weight: 700; color: var(--ag-muted); }
.ag-auth__back a:hover { color: var(--ag-navy); }

.ag-auth__form h1 { font-size: 29px; font-weight: 800; margin-bottom: 8px; }
.ag-auth__switch { font-size: var(--ag-text-base); color: var(--ag-muted); margin-bottom: 22px; }
.ag-auth__switch a { font-weight: 700; color: var(--ag-coral); }
.ag-auth__switch a:hover { color: var(--ag-coral-600); }

/* Pre-launch notice — accounts are not open yet, so say so before anyone types. */
.ag-auth__notice {
  border: 1px solid var(--ag-azure-200);
  background: var(--ag-azure-50);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.ag-auth__notice-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ag-navy);
  margin-bottom: 4px;
}
.ag-auth__notice-body { font-size: 13px; color: var(--ag-muted); line-height: 1.55; }

/* ---------- Social buttons ---------- */

.ag-auth__social { display: flex; gap: 11px; margin-bottom: 18px; }
.ag-auth__social--stack { flex-direction: column; gap: 11px; margin-bottom: 20px; }

.ag-auth__sso {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: var(--ag-border);
  background: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ag-slate);
  cursor: pointer;
  min-height: 44px;
}
.ag-auth__sso:hover:not(:disabled) { border-color: var(--ag-azure); background: #FAFCFD; }
.ag-auth__sso--dark {
  border: 1px solid var(--ag-navy);
  background: var(--ag-navy);
  color: #fff;
}
.ag-auth__sso--dark:hover:not(:disabled) { background: var(--ag-navy-hover); }
.ag-auth__sso:disabled { opacity: .5; cursor: not-allowed; }
.ag-auth__sso svg { width: 16px; height: 16px; flex-shrink: 0; }
.ag-auth__sso-g { font-weight: 800; color: #4285F4; }

.ag-auth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ag-auth__divider span:first-child,
.ag-auth__divider span:last-child { flex: 1; height: 1px; background: var(--ag-line); }
.ag-auth__divider-label { font-size: 12.5px; font-weight: 700; color: var(--ag-faint); }

/* ---------- Fields ---------- */

.ag-auth__fields { display: flex; flex-direction: column; gap: 14px; }

.ag-auth__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ag-slate);
  margin-bottom: 6px;
}

.ag-auth__input,
.ag-auth__select {
  width: 100%;
  padding: 13px 15px;
  border: var(--ag-border-input);
  border-radius: 12px;
  font-size: var(--ag-text-base);
  font-weight: 600;
  color: var(--ag-ink);
  outline: none;
  background: #fff;
  min-height: 44px;
}
.ag-auth__select { padding: 13px 12px; font-size: 14.5px; cursor: pointer; }
.ag-auth__input:focus,
.ag-auth__select:focus { border-color: var(--ag-azure); }
.ag-auth__input[aria-invalid="true"] { border-color: var(--ag-error-input); }

.ag-auth__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }

.ag-auth__pw { position: relative; }
.ag-auth__pw .ag-auth__input { padding-right: 62px; }
.ag-auth__pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ag-hover-fill);
  border: 0;
  border-radius: var(--ag-radius-sm);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ag-muted);
  cursor: pointer;
  min-height: 32px;
}
.ag-auth__pw-toggle:hover { background: var(--ag-line); }

.ag-auth__error {
  font-size: 12.5px;
  color: var(--ag-error-text);
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  gap: 6px;
}
.ag-auth__error[hidden] { display: none; }
.ag-auth__error::before { content: "!"; font-weight: 800; }

.ag-auth__forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.ag-auth__forgot a { font-size: 13px; font-weight: 700; color: var(--ag-azure-600); }

/* ---------- Checkboxes ---------- */

.ag-auth__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  cursor: pointer;
}
.ag-auth__check + .ag-auth__check { margin-top: 11px; }
.ag-auth__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ag-coral);
  flex-shrink: 0;
}
.ag-auth__check span { font-size: 13px; color: var(--ag-muted); line-height: 1.5; }
.ag-auth__check a { font-weight: 700; }

/* ---------- Submit ---------- */

.ag-auth__submit {
  width: 100%;
  padding: 15px;
  background: var(--ag-coral);
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--ag-shadow-primary);
  margin-top: 20px;
  min-height: 48px;
  transition: background var(--ag-motion-base);
}
.ag-auth__submit:hover { background: var(--ag-coral-600); }

.ag-auth__result {
  margin-top: 18px;
  border: 1px solid var(--ag-azure-200);
  background: var(--ag-azure-50);
  border-radius: 12px;
  padding: 16px;
  animation: agIn .25s ease;
}
.ag-auth__result[hidden] { display: none; }
.ag-auth__result-title { font-size: 14.5px; font-weight: 800; color: var(--ag-navy); margin-bottom: 5px; }
.ag-auth__result-body { font-size: 13px; color: var(--ag-muted); line-height: 1.55; }
.ag-auth__result-body a { font-weight: 700; }

.ag-auth__secure {
  font-size: 12.5px;
  color: var(--ag-faint);
  text-align: center;
  margin-top: 22px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
}
.ag-auth__secure svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   Centred single-card variant (/forgot-password)
   ========================================================================== */

.ag-authc {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px var(--ag-gutter);
  position: relative;
  background: radial-gradient(900px 500px at 50% -20%, #EDF4FF, #F5F8FB 60%);
}

.ag-authc__logo { display: flex; align-items: center; gap: 11px; margin-bottom: 34px; }
.ag-authc__logo img { height: 34px; width: auto; flex-shrink: 0; }

.ag-authc__card {
  width: 100%;
  max-width: 440px;
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 32, 56, .1);
  padding: 36px;
}

.ag-authc__stage { animation: agIn .3s ease; }
.ag-authc__stage[hidden] { display: none; }

.ag-authc__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--ag-radius-lg);
  background: var(--ag-azure-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--ag-navy);
}
.ag-authc__icon svg { width: 24px; height: 24px; }

.ag-authc__card h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.ag-authc__lead {
  font-size: 14.5px;
  color: var(--ag-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.ag-authc__banner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--ag-error-surface);
  border: 1px solid var(--ag-error-border);
  border-radius: 10px;
  padding: 11px 13px;
  margin-top: 8px;
}
.ag-authc__banner[hidden] { display: none; }
.ag-authc__banner-mark { color: var(--ag-error); font-weight: 800; flex-shrink: 0; }
.ag-authc__banner-text {
  font-size: 13px;
  color: var(--ag-error-text);
  font-weight: 600;
  line-height: 1.45;
}

.ag-authc__return {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ag-muted);
  margin-top: 18px;
  min-height: 44px;
  padding-top: 12px;
}
.ag-authc__return:hover { color: var(--ag-navy); }

.ag-authc__note {
  font-size: 12.5px;
  color: var(--ag-faint);
  margin-top: 22px;
  max-width: 400px;
  text-align: center;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.ag-authc__note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 520px) {
  .ag-authc__card { padding: 26px 20px; }
}

@media (max-width: 860px) {
  .ag-auth { grid-template-columns: 1fr; }
  .ag-auth__brand { display: none; }
}

/* Hit targets: minimum 44x44 on mobile (HANDOFF.md §4). Applies to standalone
   controls; inline links inside a sentence are exempt. */
@media (max-width: 768px) {
  .ag-auth__forgot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .ag-auth__panel { padding: 32px 18px; }
  .ag-auth__row { grid-template-columns: 1fr; }
  .ag-auth__social { flex-direction: column; }
  .ag-auth__form h1 { font-size: 26px; }
}
