*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #F5601E; --orange-light: #FF7A3D; --orange-pale: #FFF0E9;
  --orange-dark: #C4410D; --black: #0F0D0A; --white: #FFFCF9;
  --gray-light: #F7F3EF; --gray-mid: #E8E0D8; --gray-text: #7A6F66;
  --font-display: 'Plus Jakarta Sans', sans-serif; --font-body: 'DM Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--black); min-height: 100vh; overflow-x: hidden; }

/* ── LAYOUT ── */
.wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── LEFT - form panel ── */
.left {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 3rem 3.5rem;
  background: var(--white);
}
.left-inner { width: 100%; max-width: 380px; }

.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--black); text-decoration: none; letter-spacing: -0.02em; margin-bottom: 2.75rem; display: block; }
.logo span { color: var(--orange); }

/* bill info pill */
.bill-info {
  background: var(--orange-pale); border: 1px solid rgba(245,96,30,0.18);
  border-radius: 12px; padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.bill-info-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--gray-text); }
.bill-info-row svg { flex-shrink: 0; }
.bill-info-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--black); }

.form-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.form-sub { font-size: 0.875rem; color: var(--gray-text); line-height: 1.6; margin-bottom: 1.75rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--black); }
.form-hint  { font-size: 0.75rem; color: var(--gray-text); }
.input-wrap { position: relative; }
.input-wrap .ico { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--gray-text); pointer-events: none; }
.form-input {
  width: 100%; padding: 0.78rem 1rem 0.78rem 2.6rem;
  border: 1.5px solid var(--gray-mid); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--black);
  background: var(--white); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,96,30,0.12); }
.form-input.no-icon { padding-left: 1rem; }

/* password field - hidden by default */
.pwd-field { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease; margin-bottom: 0; }
.pwd-field.show { max-height: 100px; opacity: 1; margin-bottom: 1.1rem; }

.btn-primary {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--orange); color: var(--white);
  padding: 0.95rem 1.5rem; border-radius: 10px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(245,96,30,0.28);
  letter-spacing: -0.01em; margin-top: 0.25rem;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(245,96,30,0.38); }
.btn-primary:active { transform: translateY(0); }
.btn-primary .arrow { width: 26px; height: 26px; background: rgba(255,255,255,0.22); border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: transform 0.18s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; font-size: 0.78rem; color: var(--gray-text); }
.divider::before, .divider::after { content:''; flex:1; height:1px; background: var(--gray-mid); }

.btn-login {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: none; color: var(--black);
  padding: 0.85rem 1.5rem; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  border: 1.5px solid var(--gray-mid); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-login:hover { border-color: var(--orange); color: var(--orange); }

.footer-note { text-align: center; font-size: 0.76rem; color: var(--gray-text); margin-top: 2rem; line-height: 1.5; }
.footer-note a { color: var(--orange); text-decoration: none; font-weight: 500; }

/* ── RIGHT - orange promo panel ── */
.right {
  background: var(--orange);
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 3.5rem;
  position: relative; overflow: hidden;
}
.right::before { content:''; position:absolute; width:420px; height:420px; background:var(--orange-dark); border-radius:50%; top:-100px; right:-100px; opacity:0.4; }
.right::after  { content:''; position:absolute; width:260px; height:260px; background:var(--orange-light); border-radius:50%; bottom:-70px; left:-60px; opacity:0.35; }
.right-content { position: relative; z-index: 2; max-width: 360px; }

.right-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.right-eyebrow::before { content:''; width:20px; height:2px; background: rgba(255,255,255,0.5); border-radius:1px; }

.right-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: #fff; margin-bottom: 1rem; }
.right-title em { font-style: normal; opacity: 0.75; font-size: 1.3rem; display: block; margin-top: 0.25rem; }

.right-desc { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 2.25rem; }

.right-perks { display: flex; flex-direction: column; gap: 0.85rem; }
.perk { display: flex; align-items: center; gap: 0.75rem; color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 500; }
.perk-icon { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.right-cta { margin-top: 2.5rem; }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #fff; color: var(--orange);
  padding: 0.8rem 1.5rem; border-radius: 10px;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* ── STATES - JS toggled ── */
/* password-protected bill shows pwd field */
body.has-password .pwd-field { /* handled inline via JS */ }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .wrap { grid-template-columns: 1fr; }
  .right { display: none; }
  .left { padding: 2.5rem 1.5rem; min-height: 100vh; justify-content: flex-start; padding-top: 3rem; }
  .left-inner { max-width: 100%; }
}