*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: #071c42;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #061f49;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 68% 6%, rgba(86, 183, 255, .34) 0 18%, transparent 38%),
    linear-gradient(90deg, rgba(3, 20, 48, .96) 0%, rgba(5, 65, 134, .9) 55%, rgba(8, 132, 239, .82) 100%),
    url('../images/bg.png') center bottom / cover no-repeat;
  z-index: -3;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 20, 44, .25), rgba(4, 116, 228, .14)),
    url('../images/login-hero-laptop.jpg') left bottom / 54% auto no-repeat;
  opacity: .5;
  z-index: -2;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 10, 27, .1), rgba(5, 25, 55, .18)),
    radial-gradient(circle at 96% 45%, rgba(107, 204, 255, .35), transparent 18%);
  z-index: -1;
}

a {
  color: inherit;
}

.top-bar,
.footer {
  height: 52px;
  padding: 0 clamp(24px, 13vw, 250px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(3, 18, 43, .88);
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
}

.top-bar {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, .14);
  min-height: 58px;
  height: auto;
  padding-top: 13px;
  padding-bottom: 13px;
}

.date-info,
.top-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}

.top-links a,
.footer-links a {
  text-decoration: none;
  transition: color .18s ease;
}

.top-links a:hover,
.footer-links a:hover {
  color: #fff;
}

.sep {
  color: rgba(255, 255, 255, .32);
}

.main-wrapper {
  flex: 1;
  min-height: calc(100vh - 110px);
  width: min(100%, 1420px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(390px, 520px);
  align-items: center;
  gap: clamp(42px, 5vw, 84px);
  padding: clamp(32px, 5vh, 58px) clamp(24px, 5vw, 72px);
  position: relative;
}

.hero-panel {
  position: relative;
  min-height: 630px;
  display: flex;
  align-items: flex-start;
  padding-top: 16px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand-logo {
  height: 92px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
}

.brand-logo-fallback {
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #18b7ff, #0b66db);
  color: #fff;
  font-size: 32px;
}

.brand-text {
  display: none;
}

.hero-headline {
  color: #fff;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.13;
  letter-spacing: 0;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.cyan {
  color: #19d6ff;
}

.hero-sub {
  color: rgba(229, 241, 255, .86);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  margin-bottom: 26px;
}

.features {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.feat-item {
  width: 120px;
  height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(26, 129, 221, .31);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 44px rgba(0, 23, 70, .16);
}

.feat-icon {
  color: #2ed0ff;
  font-size: 38px;
}

.feat-label {
  color: #fff;
  font-size: 15px;
  line-height: 1.18;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0;
}

.laptop-img {
  position: absolute;
  left: -28px;
  bottom: -10px;
  width: min(700px, 82%);
  max-height: 310px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 26px 0 0;
  opacity: .55;
  filter: saturate(1.1) contrast(1.08);
  mix-blend-mode: screen;
  pointer-events: none;
}

.right-panel {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-panel-inner,
.right-panel-glow,
.right-panel-wave {
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.right-panel-glow {
  right: -130px;
  bottom: -78px;
  width: 440px;
  height: 260px;
  border-radius: 50%;
  background: rgba(228, 244, 255, .55);
  filter: blur(5px);
}

.right-panel-wave {
  right: -250px;
  bottom: -115px;
  width: 780px;
  height: 320px;
  border-radius: 55% 0 0 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .72));
  transform: rotate(-8deg);
}

.login-card {
  width: min(100%, 520px);
  position: relative;
  z-index: 3;
  padding: 39px 40px 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 28px 80px rgba(4, 28, 74, .28);
  backdrop-filter: blur(10px);
}

.login-card h2 {
  color: #071c42;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 7px;
}

.blue {
  color: #156cf0;
}

.subtitle {
  color: #60799e;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 26px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 9px;
  font-size: 13px;
}

.alert-success {
  background: #e9f9ef;
  color: #176a38;
  border: 1px solid #bdeacb;
}

.alert-error {
  background: #fff1f1;
  color: #9d1c1c;
  border: 1px solid #f1c2c2;
}

.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #566f91;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #bfd2eb;
  border-radius: 8px;
  background: rgba(250, 253, 255, .9);
  padding: 0 48px;
  color: #061d45;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-wrap input:focus {
  background: #fff;
  border-color: #1788ff;
  box-shadow: 0 0 0 4px rgba(23, 136, 255, .14);
}

.input-icon,
.right-icon,
.toggle-pass {
  position: absolute;
  color: #536d8e;
  font-size: 18px;
}

.input-icon {
  left: 17px;
}

.right-icon,
.toggle-pass {
  right: 17px;
}

.toggle-pass {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-row-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 26px;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #60799e;
  font-size: 16px;
  font-weight: 600;
}

.check-label input {
  width: 22px;
  height: 22px;
  accent-color: #147cff;
}

.forgot-link {
  color: #006cff;
  font-size: 15px;
  font-weight: 800;
}

.btn-login {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(90deg, #129bff 0%, #0664ee 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(6, 100, 238, .28);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn-login:hover {
  opacity: .94;
  box-shadow: 0 19px 34px rgba(6, 100, 238, .32);
}

.btn-login:active {
  transform: translateY(1px);
}

.or-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 21px 0 25px;
  color: #6d809c;
  font-size: 15px;
  font-weight: 700;
}

.or-row::before,
.or-row::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d5e0ee;
}

.secure-badge {
  min-height: 101px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 9px;
  background: linear-gradient(135deg, #edf7ff 0%, #e3f2ff 100%);
}

.shield-icon {
  color: #1f85f5;
  font-size: 46px;
}

.secure-text strong {
  display: block;
  color: #076df1;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.secure-text span {
  display: block;
  color: #60799e;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.copy {
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  font-weight: 500;
}

.footer-links {
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 1120px) {
  .top-bar,
  .footer {
    padding-inline: 28px;
  }

  .main-wrapper {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .hero-panel {
    min-height: auto;
    padding-bottom: 0;
  }

  .laptop-img {
    display: none;
  }

  .right-panel {
    min-height: auto;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .top-bar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding: 12px 18px;
  }

  .top-links,
  .footer-links {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .main-wrapper {
    min-height: auto;
    padding: 22px 18px 28px;
  }

  .hero-headline,
  .hero-sub,
  .features {
    display: none;
  }

  .brand {
    margin-bottom: 0;
  }

  .brand-logo {
    height: 64px;
    max-width: 270px;
  }

  .login-card {
    padding: 28px 22px;
  }

  .login-card h2 {
    font-size: 30px;
  }

  .form-row-check {
    align-items: flex-start;
    flex-direction: column;
  }
}
