html,
body {
  min-height: 100%;
}

body.login-page {
  background: #f5f7fb;
  color: #111827;
  font-family: Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.login-card {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
  max-width: 440px;
  padding: 32px;
  width: 100%;
}

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

.login-brand img {
  height: 44px;
  object-fit: contain;
  width: 44px;
}

.login-brand span,
.login-brand strong {
  display: block;
  line-height: 1.2;
}

.login-brand span {
  color: #5f6875;
  font-size: 13px;
  font-weight: 700;
}

.login-brand strong {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.login-heading {
  margin-bottom: 24px;
}

.login-heading h1 {
  color: #111827;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
}

.login-heading p {
  color: #667085;
  font-size: 15px;
  margin: 0;
}

.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-input {
  position: relative;
}

.login-input .form-control {
  background: #ffffff;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  color: #111827;
  font-size: 15px;
  height: 46px;
  padding: 10px 44px 10px 14px;
}

.login-input .form-control:focus {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.14);
}

.login-input .form-control.is-invalid {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.login-input .form-control::placeholder {
  color: #98a2b3;
}

.login-input i {
  color: #8b95a5;
  font-size: 17px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.field-error {
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
  margin-top: 7px;
}

.login-button {
  background: #2f6df6;
  border: 1px solid #2f6df6;
  border-radius: 8px;
  box-shadow: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  height: 46px;
  margin-top: 4px;
  width: 100%;
}

.login-button:hover,
.login-button:focus {
  background: #1f57d9;
  border-color: #1f57d9;
  color: #ffffff;
}

.login-button:disabled,
.login-input .form-control:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.login-alert {
  background: #fff4ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-size: 14px;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.login-alert-success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.auth-setup-box {
  background: #f8fafc;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  margin-bottom: 22px;
  padding: 16px;
}

.auth-setup-box span,
.auth-setup-box strong {
  display: block;
  line-height: 1.25;
}

.auth-setup-box span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.auth-setup-box strong {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.auth-setup-box code {
  background: #ffffff;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  color: #111827;
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 14px 0 10px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.auth-setup-box p {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.login-footer {
  border-top: 1px solid #edf0f4;
  margin-top: 24px;
  padding-top: 18px;
  text-align: center;
}

.login-footer p {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.login-footer a {
  color: #2f6df6;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px;
  }

  .login-heading h1 {
    font-size: 26px;
  }
}
