/* ═══════════════════════════════════════════════════════════
   QARIBIA — Operator Sign In / Sign Up  (login.html only)
   Warm ivory aesthetic with Kenya-inspired gold accents.
   Standalone page, kept separate from style.css.
   ══════════════════════════════════════════════════════════ */

.op-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  background-color: #FAF7F0;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(200, 150, 62, 0.08), transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(27, 107, 114, 0.05), transparent 55%);
}

/* Faint topographic-inspired watermark */
.op-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(115deg,
      transparent 0px,
      transparent 40px,
      rgba(200, 150, 62, 0.018) 40px,
      rgba(200, 150, 62, 0.018) 41px),
    repeating-linear-gradient(-115deg,
      transparent 0px,
      transparent 60px,
      rgba(27, 107, 114, 0.015) 60px,
      rgba(27, 107, 114, 0.015) 61px);
}

.op-back {
  position: absolute;
  top: 32px;
  left: 40px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--trans-base);
}

.op-back:hover { color: var(--text-primary); }

.op-back i {
  font-size: 0.75rem;
  transition: transform var(--trans-base);
}

.op-back:hover i { transform: translateX(-3px); }

.op-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 48px 56px 48px;
  box-shadow:
    0 1px 2px rgba(28, 37, 54, 0.03),
    0 8px 24px rgba(28, 37, 54, 0.05),
    0 24px 60px rgba(200, 150, 62, 0.06);
  border: 1px solid rgba(200, 150, 62, 0.12);
  text-align: center;
  z-index: 1;
}

.op-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(to right,
      transparent,
      var(--gold-light) 30%,
      var(--gold) 50%,
      var(--gold-light) 70%,
      transparent);
  border-radius: 2px;
  opacity: 0.7;
}

.op-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 28px;
}

.op-location i {
  color: var(--gold);
  font-size: 0.7rem;
}

.op-title {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.85rem;
  color: var(--text-primary);
  margin: 0 0 30px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ── Property / Safari & Tours — underline tabs ──────────── */
.op-tabs-underline {
  display: flex;
  border-bottom: 1px solid rgba(28, 37, 54, 0.1);
  margin: 0 0 28px;
}

.op-tab-underline {
  position: relative;
  flex: 1;
  background: none;
  border: none;
  padding: 0 0 12px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--trans-base);
}

.op-tab-underline:hover {
  color: var(--text-primary);
}

.op-tab-underline.active {
  color: var(--text-primary);
}

.op-tab-underline.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}

/* ── Form ────────────────────────────────────────────────── */
.op-form {
  text-align: left;
}

.op-field {
  margin-bottom: 20px;
}

.op-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.op-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #EAE5DA;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #FFFFFF;
  outline: none;
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
}

.op-field input::placeholder { color: #B5B0A4; }

.op-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 150, 62, 0.1);
}

.op-mt {
  margin-top: 10px;
}

/* ── Radio pills (KATO yes/no) ───────────────────────────── */
.op-radio-row {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.op-radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1.5px solid #EAE5DA;
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans-base);
  text-align: center;
}

.op-radio-pill input { display: none; }

.op-radio-pill.active {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(200, 150, 62, 0.06);
  font-weight: 600;
}

/* ── Hint + check row ────────────────────────────────────── */
.op-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.op-hint i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.op-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}

.op-check-row input {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Errors ──────────────────────────────────────────────── */
.op-error {
  display: none;
  color: #C0392B;
  font-size: 0.82rem;
  font-weight: 500;
  margin: -8px 0 16px;
  line-height: 1.5;
}

.op-error.show { display: block; }

/* ── Primary / ghost buttons ─────────────────────────────── */
.op-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--trans-base);
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(200, 150, 62, 0.25);
}

.op-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(200, 150, 62, 0.4);
}

.op-btn i {
  font-size: 0.8rem;
  transition: transform var(--trans-base);
}

.op-btn:hover i { transform: translateX(3px); }

.op-btn--ghost {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1.5px solid #EAE5DA;
  box-shadow: none;
  margin-top: 12px;
}

.op-btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(200, 150, 62, 0.04);
  box-shadow: none;
}

/* ── Mode switch link ("Don't have an account? Sign Up") ── */
.op-switch {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.op-switch__link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 5px;
  font: inherit;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  transition: color var(--trans-base);
}

.op-switch__link:hover,
.op-switch__link:focus-visible {
  color: var(--amber);
  text-decoration: underline;
  outline: none;
}

/* ── SSO group ───────────────────────────────────────────── */
.op-sso-group {
  margin-top: 28px;
}

.op-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.op-divider::before,
.op-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #EAE5DA;
}

.op-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1.5px solid #EAE5DA;
  border-radius: 12px;
  background: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: not-allowed;
  opacity: 0.55;
  transition: all var(--trans-base);
  text-align: left;
}

.op-google__left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.op-google__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.op-google__badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(200, 150, 62, 0.12);
  padding: 4px 8px;
  border-radius: 20px;
}

/* ── Success state ───────────────────────────────────────── */
.op-success {
  text-align: center;
  padding: 8px 0;
}

.op-success__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--teal));
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(27, 107, 114, 0.25);
}

.op-success h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.op-success p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
  .op-page { padding: 80px 18px 40px; }

  .op-card {
    padding: 36px 28px 36px;
    border-radius: 20px;
  }

  .op-back {
    top: 22px;
    left: 22px;
  }

  .op-title {
    font-size: 1.55rem;
    margin-bottom: 24px;
  }

  .op-location {
    margin-bottom: 22px;
    font-size: 0.65rem;
  }
}