/* --- Base Layout --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

body {
  background: #f4f7fb; /* light cool background (match new UI) */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #1f2a37;
}

/* Container */
.container {
  text-align: center;
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

/* --- Card --- */
.login-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: 32px 28px;
  margin-bottom: 18px;
}

/* Logo */
.logo-wrapper {
  text-align: center;
  margin-bottom: 18px;
}
.logo {
  height: 70px;
}

/* Subtitle */
.subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 16px 0 22px;
  line-height: 1.35;
}

/* --- NEW Order Summary Card --- */
.order-summary-card {
  position: relative;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 14px;
  padding: 18px 16px;
  margin: 8px 0 16px;
}

.order-title {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.order-badge {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-badge img {
  max-height: 28px;
  max-width: 90px;
  object-fit: contain;
}

.order-amount {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.2px;
}

/* --- Input Fields --- */
.input-group {
  text-align: left;
  margin-bottom: 14px;
}

.input-group label {
  font-size: 0.88rem;
  color: #111827;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.required {
  color: #ef4444;
  margin-left: 2px;
}

/* Shared input look */
.input-group input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background-color: #ffffff;
  font-size: 0.98rem;
  color: #111827;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input-group input::placeholder {
  color: #9ca3af;
}

.input-group input:focus {
  border-color: rgba(2, 132, 199, 0.6);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
  outline: none;
}

/* --- Mobile Input (07 + input) --- */
.mobile-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-code {
  height: 44px;
  min-width: 56px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-input input {
  flex: 1;
}

/* --- Password Input with toggle icon --- */
.password-input {
  position: relative;
}

.password-input input {
  padding-right: 44px; /* space for icon */
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

/* --- Forgot --- */
.forgot-wrapper {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 16px;
}

.forgot {
  font-size: 0.85rem;
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}
.forgot:hover {
  text-decoration: underline;
}

/* --- Status Message --- */
.status {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: #6b7280;
  min-height: 18px;
}

/* --- Buttons --- */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
  height: 46px;
}

/* Primary */
.primary-btn {
  background: #0b74b8; /* SplitPay-like blue */
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(11, 116, 184, 0.18);
}
.primary-btn:hover:not(:disabled) {
  background: #0a67a3;
}
.primary-btn:active:not(:disabled) {
  transform: translateY(1px);
}

/* Cancel */
.cancel-btn {
  background: #eef2f7;
  color: #334155;
}
.cancel-btn:hover:not(:disabled) {
  background: #e5eaf2;
}
.cancel-btn:active:not(:disabled) {
  transform: translateY(1px);
}

/* Disable */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Keep compatibility with old button selector (just in case) */
button {
  font: inherit;
}

/* --- Footer --- */
footer {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 10px;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .login-card {
    padding: 26px 18px;
    border-radius: 18px;
  }
  .order-amount {
    font-size: 1.4rem;
  }
}

/* =========================
   Payment Schedule Page CSS
   (Add this BELOW your finalized CSS)
   ========================= */

/* --- Card spacing tweak for this page --- */
.login-card.payment-card {
  padding: 34px 34px;
}

/* --- Page Title --- */
.page-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: -6px;
  margin-bottom: 10px;
}

/* --- Schedule List Wrapper --- */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

/* --- Generic Option Card (radio row) --- */
.schedule-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  padding: 14px 16px;

  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}

.schedule-option:hover {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.schedule-option:active {
  transform: translateY(1px);
}

/* Left group: radio + text */
.option-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Radio */
.option-left input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #0b74b8;
}

/* Text blocks */
.option-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.option-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 700;
}

.option-sub {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  color: #6b7280;
}

.option-sub .old {
  text-decoration: line-through;
  color: #94a3b8;
}

/* Right side amount (e.g., 833.33 × 3) */
.option-right {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

/* --- Selected state (blue outline like screenshot) --- */
.schedule-option.selected {
  border-color: rgba(11, 116, 184, 1);
  box-shadow: 0 10px 24px rgba(11, 116, 184, 0.10);
}

/* --- Special: Pay at once promo row with mascot --- */
.pay-once {
  position: relative;
  padding-right: 92px; /* room for mascot image */
}

.pay-once .promo {
  color: #6366f1;
  font-weight: 800;
}

.mascot {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

/* --- Buttons placement (same base buttons; just spacing for this page) --- */
.payment-actions {
  margin-top: 18px;
}

.payment-actions .button-group {
  margin-top: 0;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .login-card.payment-card {
    padding: 26px 18px;
  }

  .pay-once {
    padding-right: 78px;
  }

  .mascot {
    width: 80px;
    height: 80px;
    right: -20px;
  }
}

/* =========================
   Payment Method Page CSS
   (Add this BELOW your finalized CSS)
   ========================= */

.login-card.method-card {
  padding: 34px 34px;
}

/* Title */
.page-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: -6px;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 14px;
}

/* Method list */
.method-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* Card row */
.method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  padding: 14px 16px;

  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}

.method-option:hover {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.method-option:active {
  transform: translateY(1px);
}

/* Selected */
.method-option.selected {
  border-color: rgba(11, 116, 184, 1);
  box-shadow: 0 10px 24px rgba(11, 116, 184, 0.10);
}

/* Left group */
.method-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.method-left input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #0b74b8;
}

/* Brand icon box */
.brand-box {
  width: 54px;
  height: 28px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-box img {
  max-width: 42px;
  max-height: 18px;
  object-fit: contain;
}

/* Card label */
.method-label {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.method-mask {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

/* Bottom row: add new method */
.add-method-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.add-method-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

/* Small add button */
.add-btn {
  width: auto;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: #eef2f7;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.08s ease;
}

.add-btn:hover {
  background: #e5eaf2;
}

.add-btn:active {
  transform: translateY(1px);
}

/* Responsive */
@media (max-width: 480px) {
  .login-card.method-card {
    padding: 26px 18px;
  }
  .brand-box {
    width: 48px;
  }
}

/* =========================
   Payment Success Page CSS
   (Add this BELOW your finalized CSS)
   ========================= */

.login-card.success-card{
  padding: 34px 34px;
}

/* Header text */
.success-head{
  text-align: left;
  margin-top: 6px;
}

.success-kicker{
  font-size: 0.95rem;
  color: #16a34a;               /* green */
  font-weight: 700;
  margin-bottom: 4px;
}

.success-title{
  font-size: 1.55rem;
  font-weight: 900;
  color: #16a34a;               /* green */
  line-height: 1.1;
}

/* More info pill (top right) */
.moreinfo-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.moreinfo-btn{
  margin-top: 8px;
  width: auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.moreinfo-btn .chev{
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.8;
}

/* Summary dashed card (order value) */
.summary-box{
  background: #f8fafc;
  border: 1px dashed rgba(15,23,42,0.20);
  border-radius: 14px;
  padding: 18px 16px;
  margin-top: 14px;
}

.summary-top{
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 10px;
  text-align: center;
}

.summary-badge{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b74b8;
}

.summary-badge img{
  max-width: 44px;
  max-height: 22px;
  object-fit: contain;
}

.summary-amount{
  text-align: center;
  font-weight: 900;
  font-size: 1.6rem;
  color: #0f172a;
}

.summary-amount small{
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 800;
}

.summary-meta{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.order-pill{
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11,116,184,0.10);
  color: #0b74b8;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
}

.summary-date{
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 700;
}

/* Paragraph note */
.success-note{
  margin-top: 12px;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.45;
  text-align: left;
}

/* Installments list */
.installment-list{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Installment row card */
.installment-item{
  background: #f3f4f6;
  border-radius: 12px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.installment-item.paid{
  background: rgba(22,163,74,0.10);
}

.inst-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.inst-badge{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #0f172a;
  background: rgba(2,132,199,0.15);
  flex-shrink: 0;
}

.installment-item.paid .inst-badge{
  background: rgba(22,163,74,0.22);
}

.inst-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.inst-title{
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
}

.inst-sub{
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.inst-cardline{
  font-size: 0.75rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inst-cardline .brand{
  color: #1d4ed8;
  font-style: italic;
}

.inst-right{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.inst-amount{
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.check{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.check-placeholder{
  width: 22px;
  height: 22px;
}

/* Bottom action */
.success-actions{
  margin-top: 18px;
}

.back-home-btn{
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: #e5e7eb;
  color: #111827;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.08s ease;
}

.back-home-btn:hover{
  background: #dfe3ea;
}

.back-home-btn:active{
  transform: translateY(1px);
}

/* Responsive */
@media (max-width: 480px){
  .login-card.success-card{
    padding: 26px 18px;
  }
  .success-title{
    font-size: 1.35rem;
  }
}

/* =========================
   Installment Settlement Page CSS
   (Add BELOW existing CSS)
   ========================= */

.login-card.settlement-card {
  padding: 34px 34px;
}

/* --- Top Summary Box --- */
.settlement-summary {
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.20);
  border-radius: 14px;
  padding: 18px 16px;
  margin-top: 10px;
}

.settlement-logo {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #0b74b8;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settlement-logo img {
  max-width: 44px;
  max-height: 22px;
  object-fit: contain;
}

.settlement-values {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-size: 0.82rem;
  color: #6b7280;
}

.settlement-values strong {
  color: #0f172a;
  font-weight: 600;
}

.settlement-meta {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.settlement-pill {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11,116,184,0.10);
  color: #0b74b8;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
}

.settlement-date {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 600;
  align-items: flex-start;
}

/* --- Installment Timeline --- */
.settlement-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settlement-item {
  padding-top: 8px;
  border-top: 1px dashed rgba(15,23,42,0.15);
}

.settlement-item:first-child {
  border-top: none;
  padding-top: 0;
}

.settlement-date-small {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 600;
  text-align: left;
}

.settlement-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a; /* green for settled */
  margin-bottom: 4px;
  text-align: left;
}

.settlement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #6b7280;
  text-align: left;
}

.settlement-row strong {
  color: #0f172a;
  font-weight: 600;
}

/* --- Bottom Action --- */
.settlement-actions {
  margin-top: 18px;
}

.settlement-actions .back-home-btn {
  background: #e5e7eb;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .login-card.settlement-card {
    padding: 26px 18px;
  }
}

