.login-page {
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
  background:
    radial-gradient(circle at top left, rgba(0, 166, 166, 0.13), transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #eef7f7 100%);
}

.decor {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 46% 54% 52% 48%;
  pointer-events: none;
  opacity: 0.82;
  filter: blur(0.2px);
}

.decor-top {
  top: -150px;
  right: -120px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
}

.decor-bottom {
  bottom: -180px;
  left: -120px;
  background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
  opacity: 0.18;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(300px, 500px);
  gap: 28px;
  width: min(1040px, 100%);
  align-items: stretch;
}

.login-card,
.hero-panel {
  border: 1px solid rgba(212, 221, 230, 0.86);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.login-card {
  border-radius: var(--radius-card);
  padding: 34px;
}

.brand-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.brand-logo {
  width: min(220px, 58vw);
  max-height: 78px;
  object-fit: contain;
}

.system-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 140, 140, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.login-copy {
  margin-bottom: 28px;
}

.eyebrow,
.hero-label {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy h1,
.hero-panel h2 {
  margin: 0;
  color: var(--color-text);
  line-height: 1.12;
}

.login-copy h1 {
  font-size: var(--font-title);
}

.login-copy p:not(.eyebrow),
.hero-panel p:not(.hero-label) {
  margin: 10px 0 0;
  color: var(--color-muted);
  line-height: 1.55;
}

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

.field-group {
  display: grid;
  gap: 8px;
  color: var(--color-text);
  font-size: var(--font-small);
  font-weight: 700;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-control:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 140, 140, 0.12);
}

.field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 140, 140, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

.field-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--color-text);
  background: transparent;
}

.field-control input::placeholder {
  color: #9aa8b6;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-muted);
  font-size: var(--font-small);
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.remember-me input {
  accent-color: var(--color-primary);
}

.primary-button {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: var(--color-secondary);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 140, 140, 0.24);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.primary-button:focus {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 140, 140, 0.27);
}

.login-note {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 560px;
  border-radius: 28px;
  padding: 42px;
  color: var(--color-inverted);
  background:
    linear-gradient(145deg, rgba(7, 24, 38, 0.94), rgba(0, 140, 140, 0.72)),
    radial-gradient(circle at top right, var(--gradient-end), transparent 36%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 26px 26px auto auto;
  width: 170px;
  height: 170px;
  border-radius: 44% 56% 42% 58%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
  opacity: 0.9;
}

.hero-icon {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin-bottom: auto;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-panel h2,
.hero-panel p {
  position: relative;
  z-index: 1;
}

.hero-panel h2 {
  max-width: 420px;
  color: var(--color-inverted);
  font-size: clamp(34px, 5vw, 54px);
}

.hero-panel p:not(.hero-label) {
  max-width: 420px;
  color: rgba(248, 250, 252, 0.82);
  font-size: var(--font-subtitle);
}

.login-footer {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: var(--color-muted);
  font-size: 12px;
  text-align: center;
}

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

  .hero-panel {
    min-height: 320px;
    order: -1;
  }
}

@media (max-width: 560px) {
  .login-page {
    justify-content: flex-start;
    padding: 18px 14px 26px;
  }

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

  .brand-area,
  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-pill {
    white-space: normal;
  }

  .hero-panel {
    min-height: 260px;
    padding: 28px;
  }

  .hero-panel h2 {
    font-size: 32px;
  }
}
