/* NindoTV Customer Portal — /login redesign.
   Scoped entirely under .nd-portal-* classes and loaded ONLY by
   views/pages/login.php, so nothing here can affect any other page that
   shares app.css (dashboard, verify, support, ...) or the app.css design
   tokens (.btn/.input/.field/.alert-banner keep their existing global
   look everywhere else; new, higher-specificity rules below only apply
   inside .nd-portal-card, which no other page renders). */

.nd-portal-login {
  --nd-navy: #0b1e38;
  --nd-navy-2: #132b4d;
  --nd-orange: #ff7a00;
  --nd-red: #e0293e;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 48px) 64px;
}

.nd-portal-login-body {
  background: #f4f6fa;
}

/* ---------- Language switch ---------- */
.nd-portal-lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 48px) 0;
}

.nd-portal-lang-pill {
  border: 1.5px solid #dbe1ea;
  background: #ffffff;
  color: #64748b;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  min-height: 32px;
}

.nd-portal-lang-pill.is-active {
  background: var(--nd-navy);
  color: #ffffff;
  border-color: var(--nd-navy);
}

.nd-portal-lang-pill:focus-visible {
  outline: 3px solid rgba(11, 30, 56, .35);
  outline-offset: 2px;
}

/* ---------- Two-column shell ---------- */
.nd-portal-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .nd-portal-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 20px;
  }
}

/* ---------- Info panel ---------- */
.nd-portal-info {
  padding-top: 8px;
}

.nd-portal-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--nd-orange);
  background: rgba(255, 122, 0, .1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.nd-portal-heading {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  color: var(--nd-navy);
  margin-bottom: 16px;
  font-weight: 800;
}

.nd-portal-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  max-width: 480px;
  margin-bottom: 28px;
}

.nd-portal-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
}

.nd-portal-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--nd-navy-2);
  font-weight: 600;
  line-height: 1.45;
}

.nd-portal-features svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--nd-orange);
}

/* ---------- Login card + support column ---------- */
.nd-portal-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nd-portal-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e6e9f0;
  box-shadow: 0 20px 45px rgba(11, 30, 56, .08);
  padding: clamp(24px, 4vw, 40px);
}

.nd-portal-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--nd-navy);
  margin-bottom: 8px;
}

.nd-portal-card-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 24px;
}

.nd-portal-card .alert-banner {
  border-radius: 12px;
  margin-bottom: 20px;
}

.nd-portal-form .field label {
  color: var(--nd-navy-2);
}

.nd-portal-form .input {
  border-radius: 12px;
  border: 1.5px solid #dbe1ea;
  padding: 13px 16px;
  font-size: 15px;
  min-height: 46px;
}

.nd-portal-form .input:focus {
  border-color: var(--nd-orange);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, .15);
}

.nd-portal-submit.btn.btn-primary {
  background: var(--nd-orange);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  min-height: 48px;
  box-shadow: 0 10px 24px rgba(255, 122, 0, .25);
}

.nd-portal-submit.btn.btn-primary:hover {
  background: #e86e00;
}

.nd-portal-submit:focus-visible {
  outline: 3px solid rgba(255, 122, 0, .4);
  outline-offset: 2px;
}

.nd-portal-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

.nd-portal-security-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--nd-navy-2);
}

/* ---------- Verify page: OTP field + resend section ----------
   (scoped additions only — everything else on /verify reuses the exact
   same .nd-portal-* classes as /login: eyebrow/heading/desc/features,
   card/card-title/card-desc, form/submit, security-note, support panel). */

.nd-portal-form .otp-input {
  text-align: center;
  letter-spacing: 10px;
  font-size: 22px;
  font-weight: 700;
}

.nd-portal-resend {
  margin-top: 18px;
  text-align: center;
}

.nd-portal-resend-title {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 6px;
}

.nd-portal-resend-btn {
  color: var(--nd-orange);
  font-weight: 700;
  font-size: 13.5px;
}

.nd-portal-resend-btn:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.nd-portal-resend-cooldown {
  font-size: 12.5px;
  color: #64748b;
  margin: 6px 0 0;
}

.nd-portal-different-email {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--nd-navy-2);
  font-weight: 700;
  font-size: 13.5px;
}

.nd-portal-resend-btn:focus-visible,
.nd-portal-different-email:focus-visible {
  outline: 3px solid rgba(11, 30, 56, .3);
  outline-offset: 2px;
}

/* ---------- Support panel ---------- */
.nd-portal-support {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e6e9f0;
  box-shadow: 0 12px 30px rgba(11, 30, 56, .06);
  padding: clamp(20px, 4vw, 28px);
}

.nd-portal-support-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--nd-navy);
  margin-bottom: 6px;
}

.nd-portal-support-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 16px;
}

.nd-portal-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nd-portal-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  border: 1.5px solid #dbe1ea;
  color: var(--nd-navy);
  text-decoration: none;
  min-height: 44px;
}

.nd-portal-support-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.nd-portal-support-whatsapp {
  border-color: #25d366;
  color: #0f8a4d;
}

.nd-portal-support-whatsapp:hover {
  background: #eafcf3;
}

.nd-portal-support-email {
  border-color: var(--nd-navy-2);
  color: var(--nd-navy-2);
}

.nd-portal-support-email:hover {
  background: #f1f5f9;
}

.nd-portal-support-btn:focus-visible {
  outline: 3px solid rgba(11, 30, 56, .3);
  outline-offset: 2px;
}

.nd-portal-support-empty {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nd-portal-lang-switch {
    padding: 12px 16px 0;
  }

  .nd-portal-login {
    padding: 24px 16px 48px;
  }

  .nd-portal-support-actions {
    flex-direction: column;
  }

  .nd-portal-support-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-portal-lang-pill,
  .nd-portal-submit,
  .nd-portal-support-btn,
  .nd-portal-form .input {
    transition: none;
  }
}
