@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap");

.auth-page {
  --en-ink: #24324a;
  --en-muted: #4f5f78;
  --en-navy: #15233f;
  --en-blue: #1a73e8;
  --en-blue-deep: #0b57d0;
  min-height: 100vh;
  margin: 0;
  padding-top: calc(var(--index-topbar-h, 48px) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--en-footer-h, 32px) + env(safe-area-inset-bottom, 0px) + 12px);
  background: #ffffff;
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  color: var(--en-ink);
  box-sizing: border-box;
}

.auth-site-topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e8eef6;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.auth-site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--index-topbar-h, 48px);
  width: 100%;
  padding: 0 max(var(--index-topbar-pad-x, 16px), env(safe-area-inset-right, 0px)) 0 max(var(--index-topbar-pad-x, 16px), env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  pointer-events: auto;
}

.auth-site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  pointer-events: auto;
}

.auth-site-brand img {
  display: block;
  height: 28px;
  width: auto;
  background: transparent !important;
  box-shadow: none;
  border: 0;
}

.auth-site-topbar-actions {
  width: auto;
  flex: 0 0 auto;
  padding: 0;
  justify-content: flex-end;
}

.auth-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 36px 20px 56px;
  box-sizing: border-box;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
  border: 1px solid #e2eaf5;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(21, 35, 63, 0.08);
}

.auth-main,
.auth-aside {
  padding: 36px 32px;
  box-sizing: border-box;
  border-radius: 0;
  border: 0;
  min-width: 0;
  box-shadow: none;
}

.auth-main {
  background: #fff;
}

.auth-aside {
  background: linear-gradient(165deg, #f5f9ff 0%, #eef5ff 55%, #f7fbff 100%);
  border-left: 1px solid #e6eef8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-kicker {
  margin: 0 0 8px;
  color: var(--en-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-title {
  margin: 0 0 10px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--en-navy);
  line-height: 1.2;
}

.auth-title .auth-accent {
  color: var(--en-blue);
}

.auth-aside-title {
  margin: 0 0 10px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--en-navy);
  line-height: 1.2;
}

.auth-lead,
.auth-aside-lead {
  margin: 0 0 22px;
  color: var(--en-muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.6;
}

.auth-fields {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-fields[hidden] {
  display: none;
}

.auth-label {
  display: block;
  margin: 0 0 6px;
  color: var(--en-ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-req {
  color: #ea4335;
}

.auth-input {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0 0 12px;
  padding: 0 14px;
  border: 1px solid #c9d5ea;
  border-radius: 10px;
  background: #fff;
  color: var(--en-navy);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--en-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.auth-captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.auth-captcha-box {
  display: block;
  width: 150px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid #d0d7e4;
  background: #f2f4f8;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.auth-captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--en-blue);
  cursor: pointer;
}

.auth-captcha-refresh:hover {
  background: rgba(26, 115, 232, 0.08);
}

.auth-captcha-input {
  width: 150px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c9d5ea;
  border-radius: 10px;
  background: #fff;
  color: var(--en-navy);
  font-size: 0.95rem;
  font-weight: 500;
  box-sizing: border-box;
}

.auth-captcha-input:focus {
  border-color: var(--en-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
  outline: none;
}

.auth-actions {
  margin-top: 8px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--en-blue);
  background: var(--en-blue);
  color: #fff;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.22);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-btn:hover,
.auth-btn:focus {
  background: var(--en-blue-deep);
  border-color: var(--en-blue-deep);
  outline: none;
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-sso-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  text-align: center;
}

.auth-sso-divider::before,
.auth-sso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-sso-divider span {
  padding: 0 10px;
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.auth-sso-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-sso-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d0d7de;
  background: #fff;
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.auth-sso-btn:hover {
  background: #f8fafc;
  text-decoration: none;
  color: #1f2937;
}

.auth-sso-btn:disabled,
.auth-sso-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}

.auth-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-link {
  color: var(--en-blue);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-muted-line {
  margin: 0;
  color: var(--en-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-muted-line a {
  color: var(--en-blue);
  font-weight: 700;
  text-decoration: none;
}

.auth-muted-line a:hover {
  text-decoration: underline;
}

.auth-alert {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fff8e8;
  color: #8a4b00;
  border-left: 3px solid #f9ab00;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.auth-alert.show {
  display: block;
}

.auth-alert.error {
  background: #fce8e6;
  color: #c5221f;
  border-left-color: #ea4335;
}

.auth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.auth-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.1);
  color: var(--en-blue);
  font-size: 0.8rem;
  font-weight: 600;
}

.auth-bullets {
  margin: 0 0 22px;
  padding: 0 0 0 18px;
  color: var(--en-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.auth-bullets li::marker {
  color: var(--en-blue);
}

.auth-aside-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--en-blue);
  background: #fff;
  color: var(--en-blue);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-aside-link:hover {
  background: var(--en-blue);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 860px) {
  .auth-shell {
    padding: 24px 16px 48px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-fields {
    max-width: none;
  }

  .auth-aside {
    order: 2;
    border-left: 0;
    border-top: 1px solid #e6eef8;
  }

  .auth-main,
  .auth-aside {
    padding: 28px 20px;
  }
}

@media (max-width: 520px) {
  .auth-main,
  .auth-aside {
    padding: 24px 18px;
  }

  .auth-sso-row {
    flex-direction: column;
  }

  .auth-captcha-input {
    width: 100%;
  }
}

/* ---- Signup / create account (Meet card pattern, 980px) ---- */
.signup-page {
  background: #ffffff;
}

.signup-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 36px 20px 56px;
  box-sizing: border-box;
}

.signup-card-layout,
.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e2eaf5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(21, 35, 63, 0.08);
}

.signup-form-col {
  min-width: 0;
  padding: 36px 32px;
  box-sizing: border-box;
}

.signup-title {
  margin: 0 0 10px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--en-navy);
  line-height: 1.2;
}

.signup-lead {
  margin: 0 0 20px;
  color: var(--en-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.signup-card-note {
  margin: 0 0 16px;
  color: var(--en-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.signup-terms {
  margin: 4px 0 14px;
  color: var(--en-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.signup-terms a {
  color: var(--en-blue);
  text-decoration: underline;
}

.auth-points {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-points li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #0b57d0;
  font-size: 0.82rem;
  font-weight: 600;
}

.signup-section-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--en-navy);
}

.signup-section-lead {
  margin: 0 0 18px;
  color: var(--en-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.signup-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}

.signup-form .auth-field {
  min-width: 0;
}

.signup-form .auth-input {
  margin-bottom: 14px;
}

.auth-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234f5f78' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.signup-submit {
  margin-top: 8px;
}

.signup-footer {
  margin: 8px 4px 0;
}

.signup-aside {
  position: static;
  background: linear-gradient(165deg, #f5f9ff 0%, #eef5ff 55%, #f7fbff 100%);
  border: 0;
  border-left: 1px solid #e6eef8;
  border-radius: 0;
  box-shadow: none;
  padding: 36px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.signup-aside-art {
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
}

.signup-aside .auth-aside-title {
  margin-bottom: 14px;
}

@media (max-width: 860px) {
  .signup-card-layout,
  .signup-layout {
    grid-template-columns: 1fr;
  }

  .signup-aside {
    order: -1;
    border-left: 0;
    border-top: 1px solid #e6eef8;
    padding: 28px 20px;
  }

  .signup-form-col {
    padding: 28px 20px;
  }

  .signup-shell {
    padding: 24px 16px 48px;
  }
}

@media (max-width: 640px) {
  .signup-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---- Signup: multi-step (email -> verify -> profile) ---- */
.signup-page [hidden] {
  display: none !important;
}

.signup-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.signup-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--en-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.signup-step + .signup-step::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  margin: 0 10px;
  background: #d5e0f2;
  border-radius: 2px;
}

.signup-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #c9d5ea;
  background: #fff;
  color: var(--en-muted);
  font-size: 0.8rem;
  font-weight: 700;
  box-sizing: border-box;
}

.signup-step.is-active {
  color: var(--en-blue);
}

.signup-step.is-active .signup-step-dot {
  border-color: var(--en-blue);
  background: var(--en-blue);
  color: #fff;
}

.signup-step.is-done {
  color: #1e8e3e;
}

.signup-step.is-done .signup-step-dot {
  border-color: #1e8e3e;
  background: #1e8e3e;
  color: #fff;
}

.signup-step.is-done + .signup-step::before,
.signup-step.is-active + .signup-step::before {
  background: #d5e0f2;
}

.signup-step.is-done + .signup-step::before {
  background: #1e8e3e;
}

.auth-alert.auth-info {
  background: #e8f0fe;
  color: #174ea6;
  border-left-color: var(--en-blue);
}

.signup-otp-input {
  max-width: 260px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.4em;
}

/* Meet potp.et — paid checkout email verification */
.auth-email {
  color: var(--en-navy);
  font-weight: 700;
  word-break: break-word;
}

.auth-otp-input {
  max-width: 420px;
  letter-spacing: 0.22em;
  font-size: 1.2rem;
  font-weight: 600;
}

.auth-field-error {
  display: block;
  min-height: 1.1em;
  margin: 4px 0 8px;
  color: #c5221f;
  font-size: 0.82rem;
  font-weight: 500;
}

.auth-footer-note {
  margin: 16px 0 0;
  color: var(--en-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-footer-note + .auth-footer-note {
  margin-top: 8px;
}

.auth-text-link {
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  color: var(--en-blue);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

a.auth-text-link {
  display: inline;
}

.auth-text-link:hover {
  text-decoration: underline;
}

.auth-aside-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.auth-aside-list li {
  position: relative;
  padding: 0 0 10px 18px;
  color: var(--en-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--en-blue);
}

.potp-page .auth-actions {
  margin-top: 14px;
  margin-bottom: 4px;
}

.signup-otp-echo {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px dashed #f9ab00;
  border-radius: 8px;
  background: #fff8e8;
  color: #8a4b00;
  font-size: 0.9rem;
}

.signup-otp-echo strong {
  letter-spacing: 0.2em;
  font-size: 1.05rem;
}

.signup-step-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
}

.signup-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--en-blue);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.signup-linkbtn:hover:not(:disabled) {
  text-decoration: underline;
}

.signup-linkbtn:disabled {
  color: var(--en-muted);
  cursor: default;
}

.signup-grid-full {
  grid-column: 1 / -1;
}

.signup-hint {
  margin: -4px 0 6px;
  color: var(--en-muted);
  font-size: 0.84rem;
}

/* ---- Pricing ---- */
.pricing-page {
  background: #ffffff;
}

.pricing-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 28px 20px 48px;
  box-sizing: border-box;
}

.pricing-hero {
  text-align: center;
  margin: 0 0 28px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(21, 35, 63, 0.05);
  padding: 24px 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  border-color: #9dc0f5;
  box-shadow: 0 12px 28px rgba(26, 115, 232, 0.12);
}

.pricing-badge {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.12);
  color: var(--en-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-name {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--en-navy);
}

.pricing-price {
  margin: 0 0 10px;
  color: var(--en-navy);
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-period {
  margin-left: 4px;
  color: var(--en-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.pricing-blurb {
  margin: 0 0 16px;
  color: var(--en-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.pricing-card .auth-bullets {
  flex: 1;
  margin-bottom: 20px;
}

.pricing-card .auth-btn {
  width: 100%;
  text-decoration: none;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}
