/* Redesigned sign-in page (frontend/account/login-v2). Scoped to .hva; shares variables / buttons with css/home-v2.css. */
.hva { padding: 28px 0 56px; }

.hva-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-width: 1020px; margin: 0 auto; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--hv-line); box-shadow: 0 24px 60px rgba(20, 35, 27, .10); }

/* brand panel */
.hva-side { position: relative; display: flex; align-items: center; padding: 48px 42px; color: #fff; background: linear-gradient(150deg, #0a3829 0%, #14573f 100%); overflow: hidden; isolation: isolate; }
.hva-side::before, .hva-side::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hva-side::before { width: 340px; height: 340px; right: -130px; top: -120px; background: rgba(255, 255, 255, .06); }
.hva-side::after { width: 240px; height: 240px; left: -90px; bottom: -110px; background: rgba(45, 158, 90, .22); }
.hva-logo { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin-bottom: 22px; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.hva-logo img { width: 100%; height: 100%; object-fit: contain; }
.hva-side h2 { margin: 0 0 12px; font-family: var(--hv-serif); font-size: 31px; line-height: 1.15; font-weight: 700; color: #fff; }
.hva-side p { margin: 0 0 24px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.hva-perks { list-style: none; margin: 0; padding: 0; }
.hva-perks li { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92); float: none; }
.hva-perks i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .13); color: #9fe0bb; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

/* form card */
.hva-card { padding: 46px 48px 38px; }
.hva-card h1, .hva-card .hva-h1 { margin: 0 0 6px; font-family: var(--hv-serif); font-size: 32px; line-height: 1.1; letter-spacing: normal; color: var(--hv-ink); }
.hva .hva-card p.hva-sub { margin: 0 0 22px !important; font-size: 14px; color: var(--hv-muted); }
.hva-sub b { color: var(--hv-ink); }

.hva-socials { display: grid; gap: 10px; margin-bottom: 4px; }
.hva-socials.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hva-social { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 14px; border: 1.5px solid var(--hv-line); border-radius: 12px; background: #fff; color: var(--hv-ink); font-size: 14px; font-weight: 700; transition: border-color .15s, background .15s; }
.hva-social:hover { border-color: #cfd8d1; background: #faf8f3; color: var(--hv-ink); }
.hva-social img { width: 22px; height: 22px; object-fit: contain; }
.hva-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 18px; color: var(--hv-muted); font-size: 12.5px; }
.hva-or::before, .hva-or::after { content: ""; flex: 1; height: 1px; background: var(--hv-line); }

.hva-label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 700; color: var(--hv-ink); }
.hva-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.hva-label-row .hva-label { margin: 0 0 7px; }
.hva-forgot { font-size: 12.5px; font-weight: 700; color: var(--hv-btn); }
.hva-forgot:hover { color: #258a4d; }
.hva-field { position: relative; }
.hva-field .iti { width: 100%; display: block; }
.hva-input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--hv-line); border-radius: 12px; background: #fff; color: var(--hv-ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; box-shadow: none; }
.hva-input::placeholder { color: #9aa59e; }
.hva-input:focus { outline: 0; border-color: var(--hv-btn); box-shadow: 0 0 0 4px rgba(45, 158, 90, .14); }
.hva-input.is-invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }
.hva-pass .hva-input { padding-right: 46px; }
.hva-pass .toggle-password { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--hv-muted); font-size: 16px; cursor: pointer; }
.hva-pass .toggle-password:hover { color: var(--hv-ink); background: #f3f0e7; }
.hva-pass .toggle-password.eye::before { content: "\f06e"; }

/* register form */
.hva-group { margin: 0 0 16px; }
.hva-group .hva-label { margin-bottom: 7px; }
.hva-opt { margin-left: 4px; font-size: 11.5px; font-weight: 600; color: var(--hv-muted); }
.hva-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--hv-muted); }
.hva-error { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #b3261e; }
.hva-link { color: var(--hv-green-2); font-weight: 800; }
.hva-link:hover { color: var(--hv-btn); }
.hva-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--hv-muted); cursor: pointer; }
.hva-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hv-btn); cursor: pointer; }
.hva-check a { color: var(--hv-ink); font-weight: 700; text-decoration: underline; }
.hva-check.is-invalid span { color: #b3261e; }

/* result screens (password updated / link no longer valid) */
.hva-state { text-align: center; padding: 10px 0; }
.hva-state .hva-sub { margin-bottom: 22px !important; }
.hva-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; font-size: 26px; }
.hva-state-icon.ok { background: #e7f4ec; color: #1f7a45; }
.hva-state-icon.bad { background: #fdecea; color: #b3261e; }
a.hva-btn { text-decoration: none; }
a.hva-btn:hover { color: #fff; }

.hva-msg { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.hva-msg.err { background: #fdecea; color: #b3261e; }
.hva-msg.ok { background: #e7f4ec; color: #1f7a45; }

.hva-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-top: 18px; border: 0; border-radius: 12px; background: var(--hv-btn); color: #fff; font-size: 15.5px; font-weight: 800; letter-spacing: .01em; cursor: pointer; transition: background .15s; }
.hva-btn:hover { background: #258a4d; }
.hva-btn:disabled { opacity: .7; cursor: default; }
.hva-btn.loading { position: relative; color: transparent; }
.hva-btn.loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: hva-spin .8s linear infinite; }
@keyframes hva-spin { to { transform: rotate(360deg); } }

.hva-new { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--hv-muted); }
.hva-new a { color: var(--hv-green-2); font-weight: 800; }
.hva-new a:hover { color: var(--hv-btn); }
.hva-legal { margin: 14px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--hv-muted); }
.hva-legal a { color: var(--hv-ink); font-weight: 600; }

/* code step */
.hva-back { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 14px -6px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--hv-muted); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.hva-back:hover { background: #f3f0e7; color: var(--hv-ink); }
.hva-back .fa { font-size: 20px; line-height: 1; }
.hva-otp { display: flex; gap: 10px; margin: 6px 0 0; }
.hva-otp input { flex: 1 1 0; min-width: 0; height: 58px; padding: 0; border: 1.5px solid var(--hv-line); border-radius: 12px; background: #fff; text-align: center; font-size: 24px; font-weight: 800; color: var(--hv-ink); box-shadow: none; }
.hva-otp input:focus { outline: 0; border-color: var(--hv-btn); box-shadow: 0 0 0 4px rgba(45, 158, 90, .14); }

/* phone: the brand panel becomes a slim strip above the form */
@media (max-width: 860px) {
  .hva { padding: 8px 0 28px; }
  .hva-shell { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .hva-card { min-width: 0; }
  .hva-side { padding: 22px 22px; }
  .hva-side-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .hva-logo { width: 52px; height: 52px; margin: 0; }
  .hva-side h2 { flex: 1 1 0; min-width: 0; margin: 0; font-size: 20px; }
  .hva-side p, .hva-perks { display: none; }
  .hva-card { padding: 26px 20px 26px; }
  .hva-card h1, .hva-card .hva-h1 { font-size: 27px; }
  .hva-otp { gap: 7px; }
  .hva-otp input { height: 52px; font-size: 21px; }
}
@media (max-width: 420px) {
  .hva-socials.cols-2 { grid-template-columns: 1fr; }
}
