/* ================================================================
   permanent tsb — Open24  ·  1:1 visual replica of open24.ie/online
   Palette pulled from live site:
     navy   #1D252C / #181F26
     orange #FC4C02 / #D23A06
     peach  #FFDACB / #FFF6F2
     link   #D23A06
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background-color: #1D252C;
  color: #3a3f44;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('../img/bg-overlay.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

/* ---------------- Notification banner ---------------- */
.notify-banner {
  background: linear-gradient(90deg, #FFDACB 0%, #FFF6F2 100%);
  padding: 14px 20px;
  position: relative;
}
.notify-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 34px;
}
.notify-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid #D23A06;
  border-radius: 50%;
  color: #D23A06;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.notify-text { font-size: 13.5px; line-height: 1.55; color: #3a3f44; }
.notify-text strong { font-weight: 700; }
.notify-text a { color: #D23A06; font-weight: 700; text-decoration: none; }
.notify-text a:hover { text-decoration: underline; }
#banner-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #3a3f44;
  cursor: pointer;
  padding: 4px;
}
#banner-close:hover { color: #D23A06; }

/* ---------------- Header ---------------- */
.site-header {
  background: #1D252C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px 0;
}
.header-logo img { height: 44px; width: 80px; display: block; }
.header-title {
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  padding: 26px 24px 18px;
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------------- Main ---------------- */
.main {
  flex: 1;
  padding: 10px 20px 48px;
}

/* ---------------- Login card ---------------- */
.login-module { max-width: 664px; margin: 0 auto; }

.login-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 30px 46px 42px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.login-title {
  font-size: 26px;
  font-weight: 400;
  color: #1D252C;
  text-align: center;
  margin-bottom: 26px;
}

/* inline form rows: label left, input right */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.form-label {
  width: 232px;
  flex: 0 0 232px;
  text-align: right;
  padding-top: 8px;
}
.form-label label {
  font-size: 14px;
  font-weight: 700;
  color: #1D252C;
  display: block;
}
.form-label .hint {
  font-size: 12.5px;
  color: #6a7076;
  margin-top: 5px;
  line-height: 1.4;
}
.form-input { flex: 1; min-width: 0; }
.form-input input[type="tel"],
.form-input input[type="password"],
.form-input input[type="text"] {
  width: 215px;
  max-width: 100%;
  height: 34px;
  padding: 0 10px;
  font-size: 14px;
  font-family: inherit;
  color: #3a3f44;
  border: 1px solid #9aa0a6;
  border-radius: 4px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input input:focus {
  border-color: #FC4C02;
  box-shadow: 0 0 0 2px rgba(252, 76, 2, 0.18);
}
.form-input input.is-error { border-color: #D23A06; }

.form-input .forgot {
  display: block;
  width: 215px;
  max-width: 100%;
  text-align: right;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #D23A06;
  text-decoration: none;
  line-height: 1.45;
}
.form-input .forgot:hover { text-decoration: underline; }

.field-err {
  display: none;
  font-size: 12.5px;
  color: #D23A06;
  margin-top: 6px;
}
.field-err.show { display: block; }

.form-actions { text-align: center; margin-top: 30px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.btn-primary {
  background: #FC4C02;
  color: #ffffff;
  height: 36px;
  padding: 0 26px;
}
.btn-primary:hover { background: #D23A06; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ptsb-spin 0.7s linear infinite;
}
@keyframes ptsb-spin { to { transform: rotate(360deg); } }

/* ---------------- Error banner (in-card) ---------------- */
.err-banner {
  display: none;
  background: #FFDACB;
  border-left: 4px solid #D23A06;
  color: #7a2405;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.err-banner.show { display: block; }

/* ---------------- Steps ---------------- */
.step-panel { display: none; }
.step-panel.active { display: block; animation: ptsb-fade 0.25s ease; }
@keyframes ptsb-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step-lead {
  font-size: 14px;
  color: #3a3f44;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.55;
}

/* DOB */
.dob-row { display: flex; gap: 10px; justify-content: center; }
.dob-row select {
  height: 34px;
  padding: 0 8px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #9aa0a6;
  border-radius: 4px;
  background: #ffffff;
  color: #3a3f44;
  outline: none;
}
.dob-row select:focus { border-color: #FC4C02; box-shadow: 0 0 0 2px rgba(252, 76, 2, 0.18); }

/* PAN digits */
.pan-boxes { display: flex; gap: 8px; justify-content: center; }
.pan-digit {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 20px;
  font-family: inherit;
  border: 1px solid #9aa0a6;
  border-radius: 4px;
  outline: none;
  color: #1D252C;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pan-digit:focus { border-color: #FC4C02; box-shadow: 0 0 0 2px rgba(252, 76, 2, 0.18); }

/* OTP */
.otp-input {
  letter-spacing: 0.18em;
  font-size: 18px !important;
  font-weight: 600;
  text-align: center;
}
.otp-row .form-label { text-align: left; }

/* Done / verification complete */
.done-wrap { text-align: center; padding: 10px 0 6px; }
.done-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 28px;
  line-height: 52px;
  font-weight: 700;
}
.done-wrap .login-title { text-align: center; }
.done-wrap .step-lead { margin-bottom: 18px; }
.done-redirect {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
.done-redirect a {
  color: #D23A06;
  text-decoration: underline;
}

/* ---------------- Below cards ---------------- */
.below-cards {
  max-width: 664px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  background: #ffffff;
  border-radius: 4px;
  padding: 26px 28px 30px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.card h2 {
  font-size: 21px;
  font-weight: 400;
  color: #1D252C;
  margin-bottom: 14px;
  line-height: 1.3;
}
.card p { font-size: 13.5px; line-height: 1.6; color: #3a3f44; margin-bottom: 14px; }
.card ul { list-style: none; margin-bottom: 14px; }
.card ul li {
  font-size: 13.5px;
  line-height: 1.6;
  color: #3a3f44;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FC4C02;
}
.help-links { list-style: none; margin-bottom: 14px; }
.help-links li { margin-bottom: 10px; padding-left: 0; }
.help-links li::before { display: none; }
.help-links a, .card a.more {
  color: #D23A06;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.help-links a:hover, .card a.more:hover { text-decoration: underline; }
.help-links .sep { color: #3a3f44; font-size: 13.5px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #181F26;
  color: #aeb6bf;
  padding: 34px 24px 40px;
  margin-top: auto;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-links { margin-bottom: 22px; }
.footer-links a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-right: 28px;
}
.footer-links a:hover { text-decoration: underline; }
.footer-legal p { font-size: 12px; line-height: 1.7; margin-bottom: 8px; }
.footer-brand { color: #ffffff; font-weight: 700; font-size: 13px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 700px) {
  .login-card { padding: 24px 20px 32px; }
  .login-title { font-size: 22px; }
  .form-row { flex-direction: column; gap: 6px; }
  .form-label { width: 100%; flex: none; text-align: left; padding-top: 0; }
  .form-input input[type="tel"],
  .form-input input[type="password"],
  .form-input input[type="text"] { width: 100%; }
  .form-input .forgot { width: 100%; text-align: left; }
  .below-cards { grid-template-columns: 1fr; }
  .notify-inner { padding-right: 26px; }
  .header-title { font-size: 17px; }
}
