/* =====================================================================
   Auth pages — login, sign up, forgot / reset password
   Scoped under .zc-auth.
   ===================================================================== */

.zc-auth {
  /* Logo colours: blue #171C8F, red #E40D0D */
  --u-brand: #171c8f;
  --u-brand-dark: #10136b;
  --u-brand-soft: #eceefb;
  --u-accent: #e40d0d;
  --u-accent-dark: #c10b0b;
  --u-ink: #16202a;
  --u-muted: #64707d;
  --u-line: #e4e8ec;
  --u-bg: #f5f7f8;
  --u-radius: 18px;
  --u-radius-sm: 10px;

  background: var(--u-bg);
  color: var(--u-ink);
  font-family: "Poppins", sans-serif;
  padding: 130px 0 80px;
  min-height: 80vh;
}
.zc-auth *, .zc-auth *::before, .zc-auth *::after { box-sizing: border-box; }
.zc-auth a { color: var(--u-brand); text-decoration: none; font-weight: 500; }
.zc-auth a:hover { color: var(--u-brand-dark); text-decoration: underline; }

/* ---------- Card ---------- */
.zc-auth-card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  max-width: 980px; margin: 0 auto;
  background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 20px 48px rgba(16, 24, 40, .08);
  overflow: hidden;
}
.zc-auth-card.is-narrow { max-width: 520px; grid-template-columns: minmax(0, 1fr); }
.zc-auth-card.is-narrow .zc-auth-aside { display: none; }
.zc-auth-main { padding: 44px 48px; }

/* ---------- Tabs ---------- */
.zc-auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--u-bg); border-radius: 12px; padding: 4px; margin-bottom: 30px;
}
.zc-auth-tabs a {
  text-align: center; padding: 10px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--u-muted) !important; text-decoration: none !important;
  transition: background-color .15s, color .15s;
}
.zc-auth-tabs a:hover { color: var(--u-ink) !important; }
.zc-auth-tabs a.is-active { background: #fff; color: var(--u-ink) !important; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }

/* ---------- Heading ---------- */
.zc-auth-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--u-brand-soft); color: var(--u-brand); font-size: 20px;
}
.zc-auth h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; color: var(--u-ink); letter-spacing: -.01em; }
.zc-auth-sub { color: var(--u-muted); font-size: 15px; margin: 0 0 26px; line-height: 1.55; }
.zc-auth-sub:empty { display: none; }

/* ---------- Alerts ---------- */
.zc-auth-alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--u-radius-sm); margin-bottom: 20px; font-size: 14px; line-height: 1.5;
}
.zc-auth-alert i { margin-top: 3px; }
.zc-auth-alert.is-error { background: #fdecea; color: #8e1c1c; }
.zc-auth-alert.is-success { background: #e5f6ec; color: #1b6b3d; }
.zc-auth-alert.is-info { background: var(--u-brand-soft); color: var(--u-brand-dark); }

/* ---------- Form ---------- */
.zc-auth-form { display: grid; gap: 18px; }
.zc-auth-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.zc-auth-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--u-ink);
}
.zc-auth-field label a { font-size: 13px; }
.zc-auth-field input {
  width: 100%; height: 50px; padding: 0 16px;
  font-size: 15px; font-family: inherit; color: var(--u-ink);
  background: #fff; border: 1px solid #d3d9df; border-radius: var(--u-radius-sm);
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.zc-auth-field input::placeholder { color: #a3adb7; }
.zc-auth-field input:focus { outline: none; border-color: var(--u-brand); box-shadow: 0 0 0 3px rgba(23, 28, 143, .15); }
.zc-auth-field.has-error input { border-color: #c62828; }
.zc-auth-field .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: #c62828; font-size: 12px; }
.zc-auth-hint { font-size: 12px; color: var(--u-muted); margin: 6px 0 0; }

.zc-pw { position: relative; }
.zc-pw input { padding-right: 48px; }
.zc-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; background: transparent; border-radius: 8px;
  color: var(--u-muted); cursor: pointer;
}
.zc-pw-toggle:hover { color: var(--u-brand); background: var(--u-bg); }

.zc-auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 52px; border: 0; border-radius: var(--u-radius-sm);
  background: var(--u-accent); color: #fff; font-size: 16px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background-color .15s;
  margin-top: 4px;
}
.zc-auth-btn:hover { background: var(--u-accent-dark); }

.zc-auth-foot { text-align: center; font-size: 14px; color: var(--u-muted); margin: 24px 0 0; }
.zc-auth-terms { font-size: 12px; color: var(--u-muted); text-align: center; margin: 4px 0 0; line-height: 1.5; }

/* ---------- Aside ---------- */
.zc-auth-aside {
  background: linear-gradient(180deg, #f5f6fd 0%, #eceefb 100%);
  border-left: 1px solid var(--u-line);
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
}
.zc-auth-aside h2 { font-size: 20px; font-weight: 700; margin: 0 0 26px; color: var(--u-ink); }
.zc-auth-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.zc-auth-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.zc-auth-benefits li > span {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--u-brand); font-size: 16px; box-shadow: 0 2px 6px rgba(23, 28, 143, .1);
}
.zc-auth-benefits strong { display: block; font-size: 15px; margin-bottom: 2px; }
.zc-auth-benefits small { display: block; font-size: 13px; color: var(--u-muted); line-height: 1.5; }
.zc-auth-secure {
  display: flex; align-items: center; gap: 8px;
  margin: 32px 0 0; padding-top: 20px; border-top: 1px solid rgba(23, 28, 143, .12);
  font-size: 13px; color: var(--u-muted);
}
.zc-auth-secure i { color: var(--u-brand); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .zc-auth { padding: 110px 0 60px; }
  .zc-auth-main { padding: 36px 32px; }
  .zc-auth-aside { padding: 36px 28px; }
}

@media (max-width: 767.98px) {
  .zc-auth-card { grid-template-columns: minmax(0, 1fr); }
  .zc-auth-aside { border-left: 0; border-top: 1px solid var(--u-line); padding: 28px 24px; }
  .zc-auth-aside h2 { font-size: 17px; margin-bottom: 18px; }
  .zc-auth-benefits { gap: 16px; }
  .zc-auth-secure { margin-top: 22px; }
}

@media (max-width: 575.98px) {
  .zc-auth { padding: 95px 0 40px; }
  .zc-auth .container { padding-left: 12px; padding-right: 12px; }
  .zc-auth-card { border-radius: 16px; }
  .zc-auth-main { padding: 28px 20px; }
  .zc-auth h1 { font-size: 22px; }
  .zc-auth-sub { font-size: 14px; margin-bottom: 22px; }
  .zc-auth-row { grid-template-columns: minmax(0, 1fr); }
  .zc-auth-field input { font-size: 16px; } /* prevent iOS zoom */
  .zc-auth-tabs { margin-bottom: 24px; }
}
