* {
  box-sizing: border-box;
}

body {
  align-items: center;
  background: #0b2d3e;
  color: #ffffff;
  display: flex;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  padding: 24px;
}

.login-shell {
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  overflow: hidden;
  width: min(1080px, 100%);
}

.login-welcome {
  align-items: flex-start;
  background: #0b2d3e;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 58px 62px;
  position: relative;
}

.login-welcome::before {
  background: linear-gradient(145deg, rgba(9, 38, 54, .92), rgba(12, 49, 66, .98));
  content: "";
  inset: 0;
  position: absolute;
}

.login-welcome-content {
  position: relative;
  text-align: left;
  width: 100%;
  z-index: 1;
}

.login-brand {
  align-items: baseline;
  color: #fff;
  display: inline-flex;
  font-size: 1.55rem;
  font-weight: 800;
  gap: 2px;
  letter-spacing: -.02em;
  margin-bottom: 116px;
}

.login-brand strong {
  font-weight: 300;
}

.login-welcome h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 24px;
}

.login-welcome p {
  color: rgba(255, 255, 255, .92);
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.48;
  margin: 0;
  max-width: 520px;
  text-align: left;
}

.login-form-panel {
  align-items: center;
  background: #f7fafc;
  display: flex;
  justify-content: center;
  padding: 56px 48px 76px;
  position: relative;
}

.login-form-wrap {
  width: min(400px, 100%);
}

.login-form-wrap h2 {
  color: #0b2d3e;
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 700;
  margin: 0 0 36px;
  text-align: center;
}

.field-group {
  margin-bottom: 22px;
  position: relative;
}

.field-group input,
.field-group select {
  background: #ffffff;
  border: 1px solid #cbd8e3;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(11, 45, 62, .08);
  color: #0b2d3e;
  font-size: 1.02rem;
  font-weight: 600;
  height: 56px;
  outline: none;
  padding: 0 52px 0 24px;
  width: 100%;
}

.field-group select { appearance: none; cursor: pointer; padding-right: 52px; }
.company-prompt { color: #405566; line-height: 1.5; margin: 0 0 20px; text-align: center; }

.field-group input:focus {
  background: #fff;
  border-color: #0b2d3e;
  box-shadow: 0 0 0 4px rgba(11, 45, 62, .12);
}

.field-group i,
.password-toggle {
  color: #a6aab0;
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  right: 16px;
  width: 34px;
}

.environment-badge {
  align-items: center;
  background: #e8f0f5;
  border: 1px solid #c9d8e1;
  border-radius: 999px;
  color: #0b2d3e;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 900;
  justify-content: center;
  margin: -18px auto 28px;
  min-height: 34px;
  padding: 0 14px;
  text-align: center;
}

.login-button {
  background: #0b2d3e;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(11, 45, 62, .22);
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  height: 56px;
  width: 100%;
}

.login-button:hover {
  background: #113d52;
}

.login-error,
.login-help {
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 700;
  margin-top: 18px;
  padding: 12px 14px;
  text-align: center;
}

.login-error {
  background: #fff1f1;
  border: 1px solid #f3b4b4;
  color: #a32121;
}

.login-help {
  background: #edf3f7;
  border: 1px solid #cbd8e3;
  color: #0b2d3e;
}

.login-rights {
  bottom: 18px;
  color: #5d7180;
  font-size: .9rem;
  font-weight: 700;
  position: absolute;
  right: 28px;
}

@media (max-width: 860px) {
  body {
    padding: 14px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-welcome {
    min-height: 270px;
    padding: 34px 26px;
  }

  .login-brand {
    margin-bottom: 40px;
  }
}
