* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #0a2c5e 0%, #14539a 45%, #2e86c1 100%);
}

.login-bg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 16px;
}

.login-bg::before,
.login-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-bg::before {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: rgba(255, 255, 255, .08);
}

.login-bg::after {
  width: 520px;
  height: 520px;
  right: -140px;
  bottom: -160px;
  background: rgba(255, 255, 255, .06);
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
}

.login-card {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.login-card .card-body {
  padding: 1.25rem 1.5rem 1.25rem;
}

.login-logo {
  width: 100%;
  height: 112px;
  margin: 4px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo img {
  max-width: 264px;
  max-height: 112px;
  object-fit: contain;
}

.login-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: #0a2c5e;
  margin-bottom: 2px;
}

.login-subtitle {
  text-align: center;
  color: #7a8699;
  font-size: .85rem;
  margin-bottom: 1.4rem;
}

.login-alert {
  font-size: .85rem;
}

.login-label {
  font-size: .8rem;
  font-weight: 600;
  color: #445;
}

.login-input .input-group-text {
  background: #f0f3f7;
  color: #14539a;
  border-color: #d7dee8;
}

.login-input .form-control {
  border-left: 0;
  padding-left: 2px;
}

.login-input .form-control:focus {
  border-color: #2e86c1;
  box-shadow: none;
}

.login-input.has-error .input-group-text,
.login-input.has-error .form-control {
  border-color: #dc3545;
}

.login-toggle {
  cursor: pointer;
  color: #14539a;
  border-left: 0;
  background: #f0f3f7;
}

.login-toggle:hover {
  color: #0a2c5e;
}

.login-feedback {
  font-size: .75rem;
  color: #dc3545;
  margin-top: 4px;
  margin-bottom: 0;
}

.login-btn {
  padding: .65rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  border: 0;
  background: linear-gradient(135deg, #14539a, #2e86c1);
  transition: filter .15s ease;
}

.login-btn:hover {
  filter: brightness(1.08);
}

.login-footer {
  text-align: center;
  color: rgba(255, 255, 255, .75);
  font-size: .75rem;
  margin-top: 14px;
}