html, body { min-height: 100%; }

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .08), transparent 30%),
    linear-gradient(180deg, #eff5fb 0%, #f8fbff 100%);
  color: #0f172a;
  font-family: Inter, Calibri, "Segoe UI", Arial, sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 46%) 1fr;
}

.auth-panel {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  box-shadow: 10px 0 32px rgba(15, 23, 42, .06);
  position: relative;
  z-index: 2;
}

.auth-panel__inner { width: min(100%, 570px); }

.auth-brand {
  margin-bottom: 28px;
}
.auth-brand img {
  display: block;
  max-width: 100%;
  width: 360px;
}
.auth-brand__subtitle {
  margin-top: 10px;
  color: #4f6b95;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
}

.auth-title {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  color: #0f2144;
  margin: 0 0 14px;
}
.auth-title .accent { color: #2563eb; }

.auth-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: #5e7293;
  margin-bottom: 26px;
  max-width: 620px;
}

.auth-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #10213d;
}

.auth-input-group {
  position: relative;
  margin-bottom: 18px;
}
.auth-input-group .bi.input-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  font-size: 20px;
  color: #5471a0;
}
.auth-input-group .bi.toggle-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 20px;
  color: #5471a0;
}
.auth-input {
  width: 100%;
  height: 58px;
  border-radius: 14px;
  border: 1px solid #bfd1ea;
  background: #ffffff;
  padding: 0 52px;
  outline: none;
  color: #132441;
  font-size: 16px;
  transition: .18s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .04);
}
.auth-input::placeholder { color: #8da1bf; }
.auth-input:focus {
  border-color: #2f78ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 22px;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #18325d;
  font-weight: 500;
}
.auth-check input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.auth-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  height: 62px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #1153c3 0%, #2375ff 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 12px 28px rgba(17, 83, 195, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(17, 83, 195, .28);
}

.auth-divider {
  margin: 28px 0 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #7386a4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d7e2f0;
}

.auth-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 14px;
}
.auth-feature {
  text-align: center;
  padding: 10px 6px;
}
.auth-feature__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #1d66e6;
  background: rgba(37, 99, 235, .08);
  font-size: 25px;
}
.auth-feature__label {
  font-size: 12px;
  line-height: 1.2;
  color: #0f2144;
  font-weight: 800;
  letter-spacing: .08em;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 20, 54, .86), rgba(3, 23, 63, .94)),
    linear-gradient(135deg, #071937 0%, #0d3f8f 58%, #0a5cea 100%);
  color: #fff;
  display: flex;
  align-items: stretch;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(123, 190, 255, .28), transparent 22%),
    radial-gradient(circle at 82% 58%, rgba(123, 190, 255, .14), transparent 22%),
    linear-gradient(120deg, rgba(255,255,255,.06), transparent 35%);
  pointer-events: none;
}
.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -20% 10%;
  height: 52%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 50%);
  pointer-events: none;
}

.auth-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 58px 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.auth-hero__top {
  display: flex;
  justify-content: flex-end;
}

.auth-hero__pills {
  display: grid;
  gap: 12px;
  text-align: right;
  letter-spacing: .32em;
  font-size: 12px;
  color: rgba(226, 236, 255, .92);
  text-transform: uppercase;
}

.auth-hero__headline {
  max-width: 480px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -.03em;
}
.auth-hero__headline strong {
  display: block;
  font-weight: 800;
  color: #90bcff;
}

.auth-hero__minor {
  margin-top: 24px;
  max-width: 320px;
  color: rgba(234, 242, 255, .86);
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.8;
  font-size: 15px;
}

.auth-hero__chart {
  position: absolute;
  inset: auto 6% 10% 28%;
  height: 52%;
  display: flex;
  align-items: flex-end;
  gap: 22px;
}
.auth-hero__bar {
  width: 40px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(123, 190, 255, .85) 0%, rgba(55, 121, 255, .28) 100%);
  box-shadow: 0 0 18px rgba(123, 190, 255, .18);
  border: 1px solid rgba(255,255,255,.08);
}
.auth-hero__line {
  position: absolute;
  inset: auto 3% 7% 26%;
  height: 38%;
  border-bottom: 3px solid rgba(123, 190, 255, .75);
  border-left: 0;
  border-radius: 0 0 180px 0;
  transform: skewX(-14deg);
  opacity: .8;
  filter: drop-shadow(0 0 12px rgba(123, 190, 255, .18));
}
.auth-hero__words {
  position: absolute;
  right: 54px;
  bottom: 84px;
  text-align: right;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(232, 241, 255, .88);
  line-height: 1.9;
  font-size: 15px;
}

.auth-watermark {
  position: absolute;
  right: 54px;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-watermark img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.auth-watermark span {
  color: rgba(232, 241, 255, .92);
  letter-spacing: .18em;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.6;
}

@media (max-width: 1199.98px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { min-height: 520px; }
  .auth-panel { order: 2; }
  .auth-hero { order: 1; }
}

@media (max-width: 767.98px) {
  .auth-panel { padding: 28px 18px; }
  .auth-title { font-size: 34px; }
  .auth-subtitle { font-size: 16px; }
  .auth-features { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
  .auth-hero__content { padding: 30px 20px; }
  .auth-hero__headline { font-size: 34px; max-width: 320px; }
  .auth-hero__chart { left: 18%; right: 2%; gap: 10px; }
  .auth-hero__bar { width: 22px; }
  .auth-hero__words { right: 20px; bottom: 72px; font-size: 12px; }
  .auth-watermark { right: 20px; bottom: 22px; }
}
