/* Property Connect — Operations Portal : authentication pages (login / OTP) */

html, body { overflow-x: hidden; }

.pc-auth {
  min-height: 100vh;
  max-width: 100vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pc-auth, .pc-auth__brand, .pc-auth__panel, .pc-auth__panel-inner {
  min-width: 0;
}

/* ---------- brand panel ---------- */
.pc-auth__brand {
  background: var(--pc-navy);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.pc-auth__brand .pc-brand__name { color: #fff; }

.pc-auth__brand-mid { max-width: 420px; position: relative; z-index: 1; }
.pc-auth__brand-mid h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.pc-auth__brand-mid p {
  margin: 0;
  color: var(--pc-navy-ink);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.pc-auth__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pc-auth__stats div { display: flex; flex-direction: column; gap: 2px; }
.pc-auth__stats strong { color: #fff; font-weight: 700; font-size: 22px; }
.pc-auth__stats span { color: var(--pc-navy-muted); font-size: 13px; font-weight: 500; }

.pc-auth__brand-foot {
  color: #5c6b7a;
  font-size: 12.5px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.pc-auth__brand-blob {
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(61, 181, 74, 0.1);
}

/* ---------- form panel ---------- */
.pc-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--pc-bg);
}
.pc-auth__panel-inner { width: 100%; max-width: 420px; }

.pc-auth__mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 28px; }

.pc-auth__title { margin: 0 0 8px; font-size: 27px; font-weight: 700; letter-spacing: -0.02em; }
.pc-auth__subtitle { margin: 0 0 26px; color: var(--pc-muted); font-size: 14.5px; line-height: 1.6; }
.pc-auth__subtitle strong { color: var(--pc-ink); font-weight: 700; }

.pc-auth__form { display: flex; flex-direction: column; gap: 18px; }

.pc-auth__field-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--pc-s2) var(--pc-s3);
  margin-bottom: 7px;
}
.pc-auth__field-head label { font-size: 13px; font-weight: 600; }
.pc-auth__forgot { font-size: 12.5px; font-weight: 600; color: var(--pc-green-deep); }
.pc-auth__forgot:hover { color: var(--pc-green); }

.pc-auth__pw-wrap { position: relative; }
.pc-auth__pw-wrap .pc-input { padding-right: 78px; }
.pc-auth__pw-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--pc-r-sm);
  background: var(--pc-surface-3);
  color: var(--pc-ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pc-auth__pw-toggle:hover { background: var(--pc-border-strong); }
.pc-auth__pw-toggle:focus-visible { outline: 2px solid var(--pc-green); outline-offset: 2px; }

.pc-auth__submit { width: 100%; margin-top: 4px; }

.pc-auth__hint {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--pc-muted);
  line-height: 1.6;
  text-align: center;
}
.pc-auth__hint a { font-weight: 600; }

.pc-auth__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 0;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-muted);
}
.pc-auth__back:hover { color: var(--pc-ink); text-decoration: none; }

/* ---------- OTP input ---------- */
.pc-otp-group { display: flex; gap: 10px; margin-bottom: 16px; }
.pc-otp-cell {
  flex: 1;
  min-width: 0;
  height: 58px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--pc-ink);
  background: var(--pc-surface);
  border: 1.5px solid var(--pc-border);
  border-radius: var(--pc-r-lg);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pc-otp-cell:focus { border-color: var(--pc-green); box-shadow: 0 0 0 3px rgba(61, 181, 74, 0.12); }
.pc-otp-cell[aria-invalid="true"] { border-color: #e3b3b3; }

/* ---------- shared states ---------- */
.pc-auth__form .pc-field__error { margin-top: 2px; }

@media (max-width: 1179px) {
  .pc-auth { grid-template-columns: 0.85fr 1fr; }
}

@media (max-width: 759px) {
  .pc-auth { grid-template-columns: 1fr; }
  .pc-auth__brand { display: none; }
  .pc-auth__mobile-brand { display: flex; }
  .pc-auth__panel { padding: 32px 20px; align-items: flex-start; }
  .pc-auth__panel-inner { padding-top: 8px; }
}

@media (max-width: 380px) {
  .pc-otp-group { gap: 7px; }
  .pc-otp-cell { height: 50px; font-size: 19px; }
  .pc-auth__title { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-input, .pc-otp-cell, .pc-btn, .pc-auth__pw-toggle { transition: none; }
}
