/* srombot.app account pages: the art on one side, one calm form on the other. */

body.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }

.auth-art {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.auth-art img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; z-index: -2; }
.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 9, 6, 0.95) 8%, rgba(11, 9, 6, 0.35) 55%, rgba(11, 9, 6, 0.15)),
    linear-gradient(to left, rgba(11, 9, 6, 0.7), transparent 30%);
}
.auth-art .brand-lockup { display: flex; align-items: center; gap: 18px; }
.auth-art .brand-lockup img { width: 96px; height: 96px; filter: drop-shadow(0 10px 30px rgba(213, 169, 58, 0.4)); }
.auth-art h2 { font-weight: 900; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.auth-art h2 span { color: var(--gold-hi); }
.auth-art .script { margin-top: 14px; }

.auth-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px clamp(20px, 5vw, 64px);
}
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.auth-top a.home { color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.auth-top a.home:hover { color: var(--gold-hi); }
.auth-top a.home .chev { transform: rotate(-135deg); }

.panel {
  width: 100%;
  max-width: 440px;
  margin: 40px auto;
  padding: 36px clamp(22px, 4vw, 40px);
  border-radius: 18px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(213, 169, 58, 0.1), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(213, 169, 58, 0.05) inset;
}
.panel h1 { font-weight: 900; font-size: 1.9rem; }
.panel .sub { color: var(--muted); margin: 6px 0 26px; }
.panel .sub b { color: var(--gold-hi); font-weight: 800; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .input-wrap { position: relative; }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: #0e0b07;
  color: var(--text);
  font: 600 1rem var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: #6f624a; font-weight: 400; }
.field input:hover { border-color: var(--line); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(213, 169, 58, 0.14); }
.field input[dir="ltr"] { text-align: left; }
.field.bad input { border-color: #c9563f; box-shadow: 0 0 0 4px rgba(201, 86, 63, 0.14); }
.field .msg { min-height: 0; color: #e58a74; font-size: 0.88rem; }
.field .hint { color: var(--muted); font-size: 0.86rem; }

.reveal-pw {
  position: absolute;
  inset-inline-start: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--muted);
  font: 700 0.85rem var(--font);
  padding: 6px 8px;
  cursor: pointer;
}
.reveal-pw:hover { color: var(--gold-hi); }
.field .input-wrap input[type="password"], .field .input-wrap input.pw { padding-inline-start: 64px; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 4px; background: #2a2217; transition: background-color 0.3s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: #c9563f; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #d08a35; }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--gold); }
.strength[data-level="4"] i { background: #7fbf6a; }

.btn.block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(29, 20, 6, 0.35); border-top-color: #1d1406; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.alt a, .link { color: var(--gold-hi); font-weight: 700; }
.alt a:hover, .link:hover { text-decoration: underline; }
.row-end { display: flex; justify-content: flex-start; margin: -6px 0 14px; font-size: 0.92rem; }

.note {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid;
}
.note.show { display: block; }
.note.error { color: #f1b3a4; background: rgba(201, 86, 63, 0.1); border-color: rgba(201, 86, 63, 0.5); }
.note.ok { color: #cfe8c3; background: rgba(127, 191, 106, 0.08); border-color: rgba(127, 191, 106, 0.45); }

/* the six code boxes: left to right, like the digits in the email */
.otp { display: flex; direction: ltr; justify-content: center; gap: 10px; margin: 6px 0 18px; }
.otp input {
  width: 52px;
  height: 62px;
  text-align: center;
  font: 800 1.6rem var(--font);
  color: var(--gold-hi);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: #0e0b07;
  caret-color: var(--gold);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.otp input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(213, 169, 58, 0.16); transform: translateY(-2px); }
.otp input.filled { border-color: var(--line); }
.otp.bad input { border-color: #c9563f; animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.resend { text-align: center; color: var(--muted); font-size: 0.93rem; }
.resend button { border: 0; background: none; color: var(--gold-hi); font: 700 0.93rem var(--font); cursor: pointer; }
.resend button[disabled] { color: var(--muted); cursor: default; }

/* the account page */
.account { max-width: 760px; }
.status-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0e0b07;
  margin-bottom: 20px;
}
.days { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center; border: 2px solid var(--gold); background: radial-gradient(circle, rgba(213, 169, 58, 0.18), transparent 70%); }
.days b { display: block; font-size: 2rem; font-weight: 900; line-height: 1; color: var(--gold-hi); }
.days span { font-size: 0.8rem; color: var(--muted); }
.status-card.off .days { border-color: #6f624a; }
.status-card.off .days b { color: var(--muted); }
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 800; }
.pill.on { color: #1d1406; background: #9fd18a; }
.pill.off { color: #f1b3a4; background: rgba(201, 86, 63, 0.18); border: 1px solid rgba(201, 86, 63, 0.5); }
.kv { display: grid; gap: 10px; margin: 8px 0 22px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.acct-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details.more { margin-top: 18px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 4px 18px; }
details.more summary { cursor: pointer; padding: 12px 0; font-weight: 800; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { color: var(--gold-hi); }

@media (max-width: 900px) {
  body.auth { grid-template-columns: 1fr; }
  .auth-art { position: relative; height: 36vh; min-height: 240px; padding: 22px 22px 64px; }
  .auth-art .brand-lockup img { width: 64px; height: 64px; }
  .auth-art h2 { font-size: 1.35rem; }
  .auth-art .script { display: none; }
  .auth-main { min-height: 0; padding-top: 0; }
  .auth-top { display: none; }
  .panel { margin: -40px auto 32px; position: relative; }
}
@media (max-width: 420px) {
  .otp { gap: 6px; }
  .otp input { width: 44px; height: 54px; font-size: 1.35rem; }
  .acct-actions { grid-template-columns: 1fr; }
}

/* back from EasyKash */
.pay-return { text-align: center; }
.pay-mark { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--line); }
.spin.big { width: 36px; height: 36px; border-width: 3px; border-color: rgba(213, 169, 58, 0.25); border-top-color: var(--gold); }
.pay-state[data-state="paid"] .pay-mark { border-color: #7fbf6a; background: radial-gradient(circle, rgba(127, 191, 106, 0.2), transparent 70%); }
.pay-state[data-state="paid"] .pay-mark .spin { display: none; }
.pay-state[data-state="paid"] .pay-mark::after { content: "✓"; font-size: 2.4rem; color: #9fd18a; font-weight: 900; }
.pay-state[data-state="failed"] .pay-mark { border-color: #c9563f; }
.pay-state[data-state="failed"] .pay-mark .spin, .pay-state[data-state="waiting"] .pay-mark .spin { display: none; }
.pay-state[data-state="failed"] .pay-mark::after { content: "!"; font-size: 2.2rem; color: #e58a74; font-weight: 900; }
.pay-state[data-state="waiting"] .pay-mark::after { content: "⏳"; font-size: 2rem; }
.voucher { display: grid; gap: 6px; margin: 8px auto 0; padding: 18px; max-width: 320px; border: 1px solid var(--gold); border-radius: 12px; background: #0e0b07; }
.voucher span { color: var(--muted); font-size: 0.9rem; }
.voucher b { font: 900 2rem/1.2 var(--font); letter-spacing: 4px; color: var(--gold-hi); }
.voucher small { color: var(--muted); line-height: 1.7; }

/* the app, for subscribers */
.app-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; margin-bottom: 16px; border-radius: 14px; border: 1px solid var(--gold); background: radial-gradient(120% 120% at 100% 0%, rgba(213, 169, 58, 0.14), transparent 60%), #0e0b07; }
.app-card b { display: block; font-size: 1.1rem; color: var(--gold-hi); }
.app-card span { color: var(--muted); font-size: 0.9rem; }
.app-card .btn { flex: none; }
@media (max-width: 520px) { .app-card { flex-direction: column; align-items: stretch; text-align: center; } }
