:root {
  --blue: #0e67b2;
  --blue-dark: #0a2e66;
  --orange: #f59a1b;
  --text: #1f2f46;
  --muted: #66768a;
  --line: #d9e2ec;
  --soft: #f5f9fd;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(14, 63, 111, 0.16);
  --error: #c62828;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

body {
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

.page-shell {
  min-height: 86vh;
  display: grid;
  grid-template-columns: 56% 44%;
  background: linear-gradient(135deg, #f9fcff 0%, #eef6fd 55%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 80px;
  transform: rotate(-45deg);
  z-index: 0;
}

.page-shell::before {
  width: 430px;
  height: 92px;
  background: rgba(14, 103, 178, 0.13);
  left: -110px;
  bottom: 120px;
}

.page-shell::after {
  width: 330px;
  height: 92px;
  background: rgba(245, 154, 27, 0.94);
  right: -110px;
  bottom: 110px;
}

.brand-panel,
.login-panel {
  position: relative;
  z-index: 1;
}

.brand-panel {
  padding: 36px 64px 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82) 42%, rgba(240, 247, 253, 0.55)),
    url("../images/bg1.jpg") center center / cover no-repeat;
}

.brand-top,
.mini-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  max-height: 48px;
  width: auto;
}

.brand-logo-img.small {
  max-height: 40px;
}

.hero-copy {
  margin-top: 70px;
}

.eyebrow {
  font-size: 16px;
  letter-spacing: 0.35em;
  color: #6f7d8f;
  font-weight: 600;
  margin: 0 0 8px;
}

.brand-panel h1 {
  font-size: 76px;
  line-height: 1;
  margin: 0;
  color: var(--blue-dark);
  letter-spacing: -3px;
}

.subtitle {
  font-size: 26px;
  line-height: 1.35;
  max-width: 610px;
  color: #526176;
  margin: 18px 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 48px 0 34px;
  max-width: 760px;
}

.feature-grid article {
  text-align: center;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 1.35;
}

.feature-grid .icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf4fd;
}

.feature-grid .icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.stats-card {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 103, 178, 0.08);
  box-shadow: 0 14px 36px rgba(23, 74, 119, 0.08);
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 26px;
}

.stats-card > div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.stats-card > div:last-child {
  border-right: 0;
}

.stats-card strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
  margin-bottom: 5px;
}

.stats-card span {
  display: block;
  color: #55667c;
  line-height: 1.35;
  font-size: 14px;
}

.login-panel {
  padding: 44px 54px 54px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.help-link {
  position: absolute;
  right: 56px;
  top: 34px;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 15px;
}

.help-link:hover {
  color: var(--blue);
}

.login-card {
  width: min(610px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(14, 103, 178, 0.09);
  border-radius: 28px;
  padding: 42px 48px 38px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.mini-logo {
  justify-content: center;
  margin-bottom: 24px;
}

.welcome {
  text-align: center;
  color: #617188;
  font-size: 18px;
  margin: 0 0 4px;
}

.login-card h2 {
  text-align: center;
  font-size: 40px;
  margin: 0 0 24px;
  color: var(--blue-dark);
  letter-spacing: -1px;
}

.login-card form {
  display: grid;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row {
  display: flex;
  align-items: center;
  border: 1px solid #ccd7e3;
  border-radius: 12px;
  background: #fff;
  min-height: 66px;
  padding: 0 18px;
  transition: 0.2s ease;
}

.field-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14, 103, 178, 0.1);
}

.field-row.field-row--error {
  border-color: var(--error);
}

.field-icon {
  width: 34px;
  flex-shrink: 0;
  color: #718298;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-icon img {
  width: 22px;
  height: 22px;
  opacity: 0.75;
}

.field input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 17px;
  color: var(--text);
  background: transparent;
  min-height: 44px;
}

.field input::placeholder {
  color: #8b99aa;
}

.field-hint {
  font-size: 13px;
  color: var(--error);
  padding-left: 4px;
  display: none;
}

.field-hint.is-visible {
  display: block;
}

.form-error-global {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: var(--error);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.captcha-wrap .g-recaptcha {
  transform-origin: center;
}

.primary-btn {
  margin-top: 4px;
  min-height: 64px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #0c65b3, #1283d4);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 103, 178, 0.22);
  transition: 0.18s ease;
  width: 100%;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14, 103, 178, 0.28);
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.primary-btn span {
  margin-left: 8px;
}

.separator {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #718094;
  margin: 28px 0 20px;
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  background: #d9e2ec;
  flex: 1;
}

.separator span {
  font-size: 14px;
  white-space: nowrap;
}

.support-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 8px;
}

.support-links a {
  color: var(--blue);
  font-size: 14px;
  padding: 0 8px;
  border-right: 1px solid var(--line);
}

.support-links a:last-child {
  border-right: 0;
}

.trust-footer {
  background: #fff;
  border-top: 1px solid #eef2f6;
  padding: 18px 32px 22px;
  text-align: center;
}

.trust-footer p {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: #8794a6;
  margin: 0 0 18px;
}

.logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.logo-strip img {
  max-height: 36px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(20%);
}

.legal-block {
  margin-top: 28px;
  max-width: 800px;
  font-size: 14px;
  line-height: 1.55;
  color: #4a5a6e;
}

.legal-block blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 4px solid var(--blue);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0 8px 8px 0;
}

.legal-block p {
  margin: 0 0 10px;
}

@media (max-width: 1050px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding: 28px 28px 38px;
  }

  .login-panel {
    padding: 30px 20px 46px;
  }

  .help-link {
    right: 24px;
    top: 22px;
  }

  .hero-copy {
    margin-top: 50px;
  }

  .brand-panel h1 {
    font-size: 58px;
  }

  .subtitle {
    font-size: 22px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stats-card > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
  }

  .stats-card > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .brand-panel {
    order: 2;
  }

  .login-panel {
    order: 1;
  }
}

@media (max-width: 600px) {
  .brand-top {
    display: none;
  }

  .login-panel {
    padding: 72px 14px 28px;
  }

  .help-link {
    font-size: 14px;
  }

  .login-card {
    border-radius: 20px;
    padding: 30px 20px 24px;
  }

  .welcome {
    font-size: 16px;
  }

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

  .support-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support-links a {
    border-right: 0;
  }

  .brand-panel {
    padding: 36px 20px;
  }

  .hero-copy {
    margin: 0;
  }

  .eyebrow {
    font-size: 13px;
  }

  .brand-panel h1 {
    font-size: 48px;
  }

  .subtitle {
    font-size: 20px;
  }

  .feature-grid {
    gap: 12px;
  }

  .feature-grid .icon {
    width: 64px;
    height: 64px;
  }

  .trust-footer {
    padding-inline: 18px;
  }

  .logo-strip {
    gap: 16px;
  }

  .logo-strip img {
    max-height: 28px;
  }
}
