*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.lg-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #182433;
  background: #f6f8fb;
  -webkit-font-smoothing: antialiased;
}

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

.lg-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 42%;
  max-width: 560px;
  padding: 2.5rem 3rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 10%, rgba(66, 153, 225, .35) 0, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(6, 111, 209, .45) 0, transparent 50%),
    #182433;
}
.lg-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.lg-brand > * { position: relative; z-index: 1; }
.lg-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .625rem;
  background: #066fd1;
  font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(6, 111, 209, .45);
}
.lg-brand-top { display: flex; align-items: center; gap: .85rem; }
.lg-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: .45rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.lg-logo img { display: block; max-width: 160px; height: 2.5rem; object-fit: contain; }
.lg-name { font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
.lg-brand-body { margin: auto 0; }
.lg-brand h1 { max-width: 22rem; margin: 0 0 1.75rem; font-size: 1.75rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.lg-points { margin: 0; padding: 0; list-style: none; }
.lg-points li { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; color: rgba(255, 255, 255, .82); font-size: .9375rem; }
.lg-points .ti {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #8cc4f5;
  font-size: 1.05rem;
}
.lg-brand-foot { color: rgba(255, 255, 255, .4); font-size: .8125rem; }

.lg-main { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; padding: 2rem 1.25rem; }

.lg-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border: 1px solid #dce1e7;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 36, 51, .04), 0 12px 32px rgba(24, 36, 51, .06);
}
.lg-title { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.lg-sub { margin: .2rem 0 1.5rem; color: #6b7a8c; }

.lg-alert {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 0 0 1.25rem;
  padding: .65rem .8rem;
  border: 1px solid #f5c2c7;
  border-radius: .5rem;
  background: #fdf1f2;
  color: #b42318;
  font-size: .8125rem;
}
.lg-alert .ti { margin-top: 1px; font-size: 1rem; }

.lg-label { display: block; margin: 0 0 .4rem; padding: 0; font-size: .8125rem; font-weight: 600; color: #182433; }
.lg-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.lg-forgot { font-size: .8125rem; font-weight: 500; color: #066fd1; text-decoration: none; }
.lg-forgot:hover { text-decoration: underline; }

.lg-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 0 0 1.25rem; padding: 0; border: 0; }
.lg-types .lg-label { grid-column: 1 / -1; }
.lg-type { position: relative; cursor: pointer; }
.lg-type input { position: absolute; opacity: 0; pointer-events: none; }
.lg-type-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .75rem .25rem .65rem;
  border: 1px solid #dce1e7;
  border-radius: .5rem;
  background: #fff;
  color: #49566a;
  text-align: center;
  transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}
.lg-type-box .ti {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .5rem;
  background: #f1f4f8;
  font-size: 1rem;
  transition: background-color .15s, color .15s;
}
.lg-type-name { font-size: .8125rem; font-weight: 600; }
.lg-type:hover .lg-type-box { border-color: #b8c2cf; }
.lg-type input:checked + .lg-type-box { border-color: #066fd1; background: #f3f8fd; color: #066fd1; box-shadow: 0 0 0 1px #066fd1; }
.lg-type input:checked + .lg-type-box .ti { background: #066fd1; color: #fff; }
.lg-type input:focus-visible + .lg-type-box { outline: 2px solid #066fd1; outline-offset: 2px; }

.lg-field { position: relative; margin: 0 0 1rem; }
.lg-field > .ti { position: absolute; top: 50%; left: .75rem; transform: translateY(-50%); color: #8a97a8; font-size: 1.1rem; pointer-events: none; }
.lg-field input {
  width: 100%;
  height: 2.625rem;
  padding: 0 .75rem 0 2.4rem;
  border: 1px solid #dce1e7;
  border-radius: .5rem;
  background: #fff;
  color: #182433;
  font: inherit;
  font-size: .9375rem;
  transition: border-color .15s, box-shadow .15s;
}
.lg-field:has(.lg-eye) input { padding-right: 2.6rem; }
.lg-field input:focus { border-color: #066fd1; outline: 0; box-shadow: 0 0 0 3px rgba(6, 111, 209, .15); }
.lg-field:focus-within > .ti { color: #066fd1; }
.lg-eye {
  position: absolute;
  top: 50%;
  right: .35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: .375rem;
  background: transparent;
  color: #8a97a8;
  font-size: 1.1rem;
  cursor: pointer;
  transform: translateY(-50%);
}
.lg-eye:hover { background: #f1f4f8; color: #182433; }
.lg-eye .ti-eye-off,
.lg-eye.is-on .ti-eye { display: none; }
.lg-eye.is-on .ti-eye-off { display: inline-block; }

.lg-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: 2.75rem;
  margin-top: 1.5rem;
  border: 0;
  border-radius: .5rem;
  background: #066fd1;
  color: #fff;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(6, 111, 209, .3);
  transition: background-color .15s, box-shadow .15s;
}
.lg-submit .ti { font-size: 1.05rem; transition: transform .15s; }
.lg-submit:hover { background: #0561b8; box-shadow: 0 6px 16px rgba(6, 111, 209, .25); }
.lg-submit:hover .ti { transform: translateX(2px); }
.lg-submit:focus-visible { outline: 2px solid #066fd1; outline-offset: 2px; }
.lg-submit.is-busy { opacity: .75; pointer-events: none; }
a.lg-submit { text-decoration: none; }

.lg-steps { display: flex; gap: .35rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.lg-steps li { flex: 0 0 1.5rem; height: .25rem; border-radius: 999px; background: #dce1e7; }
.lg-steps li.is-done { background: #8cc4f5; }
.lg-steps li.is-current { flex-basis: 2.5rem; background: #066fd1; }

.lg-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 1rem;
  color: #6b7a8c;
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
}
.lg-back:hover { color: #182433; }

.lg-card-center { text-align: center; }
.lg-card-center .lg-steps { justify-content: center; }
.lg-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 0 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
}
.lg-state-ok { background: #e7f6ec; color: #2fb344; }

@media (max-width: 1100px) {
  .lg-brand { flex-basis: 38%; padding: 2rem; }
  .lg-brand h1 { font-size: 1.5rem; }
}
@media (max-width: 900px) {
  .lg { flex-direction: column; }
  .lg-brand {
    flex: 0 0 auto;
    max-width: none;
    align-items: center;
    padding: 1.75rem 1.25rem 3.5rem;
    text-align: center;
  }
  .lg-brand-body { margin: 1rem 0 0; }
  .lg-brand h1 { max-width: none; margin: 0; font-size: 1.125rem; font-weight: 600; }
  .lg-points, .lg-brand-foot { display: none; }
  .lg-brand-top { justify-content: center; }
  .lg-logo { padding: .4rem; }
  .lg-logo img { height: 2.25rem; }
  .lg-name { font-size: 1.125rem; }
  .lg-main { align-items: flex-start; margin-top: -2.25rem; padding: 0 1rem 2rem; }
  .lg-card { position: relative; z-index: 2; }
}
@media (max-width: 420px) {
  .lg-brand { padding: 1.5rem 1rem 3.25rem; }
  .lg-brand h1 { font-size: 1rem; }
  .lg-main { padding: 0 .75rem 1.5rem; }
  .lg-card { padding: 1.5rem 1.25rem; border-radius: .625rem; }
  .lg-types { gap: .4rem; }
  .lg-type-box { padding: .6rem .15rem .55rem; }
  .lg-field input { font-size: 16px; }
}
