/* ==========================================================================
   Harvard Investments Corp — authentication screens
   Split layout: brand/photo panel on the left, form on the right.
   Namespaced .hva-* so it never collides with the dashboard theme.
   ========================================================================== */

:root {
  --hva-ink: #0a1f33;
  --hva-ink-2: #12304d;
  --hva-base: #0575bc;
  --hva-gold: #c8a44a;
  --hva-body: #5b6b7a;
  --hva-line: #e3eaf0;
  --hva-surface: #ffffff;
  --hva-surface-alt: #f4f8fb;
}

body.hva-body {
  margin: 0;
  background: var(--hva-surface);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hva-body);
  -webkit-font-smoothing: antialiased;
}

.hva {
  display: flex;
  min-height: 100vh;
}

/* ---------- left: brand panel -------------------------------------------- */

.hva__aside {
  position: relative;
  flex: 0 0 44%;
  max-width: 44%;
  background: var(--hva-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 56px;
}

.hva__aside > * {
  position: relative;
  z-index: 2;
}

/* Scoped past `.hva__aside > *` above so these keep their absolute placement. */
.hva__aside > .hva__aside-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hva__aside > .hva__aside-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 20, 34, .62) 0%, rgba(6, 20, 34, .80) 45%, rgba(6, 20, 34, .93) 100%);
}

.hva__brand img {
  height: 62px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hva__aside-body {
  max-width: 460px;
}

.hva__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hva-gold);
  margin-bottom: 22px;
  line-height: 1;
}

.hva__eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--hva-gold);
}

.hva__aside h2 {
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: -.03em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
}

.hva__aside p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .7);
  margin: 0 0 34px;
}

.hva__points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hva__points li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}

.hva__points li::before {
  content: "\F012C";
  font-family: "Material Design Icons";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200, 164, 74, .18);
  color: var(--hva-gold);
  font-size: 12px;
}

.hva__figures {
  display: flex;
  gap: 42px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.hva__figure strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 6px;
}

.hva__figure span {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .55);
}

/* ---------- right: form panel -------------------------------------------- */

.hva__main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  background: var(--hva-surface);
}

.hva__card {
  width: 100%;
  max-width: 470px;
}

.hva__card--wide {
  max-width: 620px;
}

.hva__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hva-body);
  margin-bottom: 34px;
  transition: color .25s ease;
}

.hva__back:hover {
  color: var(--hva-ink);
}

.hva__mobile-brand {
  display: none;
  margin-bottom: 26px;
}

.hva__mobile-brand img {
  height: 54px;
  width: auto;
}

.hva__card h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 700;
  color: var(--hva-ink);
  margin: 0 0 10px;
}

.hva__card > p.hva__sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--hva-body);
  margin: 0 0 32px;
}

/* --- alerts --- */

.hva-alert {
  position: relative;
  border-radius: 6px;
  padding: 15px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
  border: 1px solid transparent;
}

.hva-alert ul {
  margin: 0;
  padding-left: 18px;
}

.hva-alert--error {
  background: #fdf1f0;
  border-color: #f3d3d0;
  color: #a5352c;
}

.hva-alert--success {
  background: #eefaf4;
  border-color: #c8ecdb;
  color: #1c7a52;
}

/* --- fields --- */

.hva-field {
  margin-bottom: 20px;
}

.hva-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hva-ink);
  margin-bottom: 8px;
}

.hva-field label span {
  color: #d0463b;
}

.hva-input {
  position: relative;
}

.hva-input > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #9fb0bf;
  pointer-events: none;
}

.hva-input input,
.hva-input select {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  font-size: 15px;
  color: var(--hva-ink);
  background: var(--hva-surface-alt);
  border: 1px solid var(--hva-line);
  border-radius: 6px;
  outline: none;
  appearance: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.hva-input select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239fb0bf' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.hva-input input::placeholder {
  color: #a4b3c0;
}

.hva-input input:focus,
.hva-input select:focus {
  background: #fff;
  border-color: var(--hva-base);
  box-shadow: 0 0 0 3px rgba(5, 117, 188, .12);
}

.hva-input__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #9fb0bf;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
}

.hva-input__toggle:hover {
  color: var(--hva-ink);
}

.hva-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

/* --- checkbox + meta row --- */

.hva-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.hva-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--hva-body);
  cursor: pointer;
  margin: 0;
}

.hva-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--hva-base);
  cursor: pointer;
}

.hva-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--hva-base);
  transition: color .25s ease;
}

.hva-link:hover {
  color: var(--hva-ink);
}

/* --- buttons --- */

.hva-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}

.hva-btn--primary {
  background: var(--hva-ink);
  color: #fff;
}

.hva-btn--primary:hover {
  background: var(--hva-base);
  color: #fff;
  transform: translateY(-1px);
}

.hva-btn--gold {
  background: var(--hva-gold);
  color: var(--hva-ink);
}

.hva-btn--gold:hover {
  background: var(--hva-ink);
  color: #fff;
}

.hva-btn--outline {
  background: #fff;
  border-color: var(--hva-line);
  color: var(--hva-ink);
}

.hva-btn--outline:hover {
  background: var(--hva-surface-alt);
}

.hva-btn--sm {
  height: 46px;
  width: auto;
  padding: 0 26px;
  font-size: 14px;
}

/* --- divider + social --- */

.hva-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0;
  font-size: 13px;
  color: #9fb0bf;
}

.hva-divider::before,
.hva-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hva-line);
}

/* --- foot --- */

.hva__foot {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--hva-line);
  font-size: 14.5px;
  color: var(--hva-body);
}

.hva__foot a {
  font-weight: 700;
  color: var(--hva-ink);
}

.hva__foot a:hover {
  color: var(--hva-base);
}

.hva__legal {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #9fb0bf;
}

/* ---------- multi-step (register) ---------------------------------------- */

.hva-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.hva-steps span {
  flex: 1;
  height: 4px;
  border-radius: 100px;
  background: var(--hva-line);
  transition: background .3s ease;
}

.hva-steps span.is-done {
  background: var(--hva-gold);
}

.hva-step {
  display: none;
  animation: hvaFade .35s ease;
}

.hva-step.is-active {
  display: block;
}

@keyframes hvaFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hva-choices {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.hva-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border: 1px solid var(--hva-line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--hva-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.hva-choice i {
  font-size: 19px;
  color: var(--hva-base);
  width: 22px;
  text-align: center;
}

.hva-choice:hover {
  border-color: #b9cddc;
  background: var(--hva-surface-alt);
}

.hva-choice.is-selected {
  border-color: var(--hva-base);
  background: rgba(5, 117, 188, .05);
  box-shadow: 0 0 0 3px rgba(5, 117, 188, .10);
}

.hva-choice.is-selected i {
  color: var(--hva-base);
}

.hva-choices--grid {
  grid-template-columns: 1fr 1fr;
}

.hva-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hva-nav .hva-btn {
  width: auto;
  padding: 0 30px;
}

.hva-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* ---------- responsive ---------------------------------------------------- */

@media (max-width: 1199px) {
  .hva__aside { padding: 44px 40px; }
  .hva__aside h2 { font-size: 33px; }
}

@media (max-width: 991px) {
  .hva__aside { display: none; }
  .hva__mobile-brand { display: block; }
  .hva__main { padding: 44px 24px; }
}

@media (max-width: 575px) {
  .hva__main { padding: 32px 18px; }
  .hva__card h1 { font-size: 26px; }
  .hva-row { grid-template-columns: 1fr; }
  .hva-choices--grid { grid-template-columns: 1fr; }
}
