* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: Segoe UI, Arial, sans-serif;
  background: #072f4b;
}

.login-background {
  position: fixed;
  inset: 0;
  background-image: url('../images/backgrounds/hospital-bg.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.login-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 47, 75, 0.65);
  z-index: 1;
}

.login-container {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card{
  position: relative;
  display: inline-block;
  z-index: 55;
  border: 1px solid #ffffff33;
  border-top: 0; /* hide border where banner overlaps */
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  background: transparent;
}

.login-box {
  width: 380px;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 55;
  position: relative;
  padding-top: 0;
  margin: 0;
}

/* Banner */
.login-card > .banner {
  position: absolute;
  top: -42px; /* slightly more overlap */
  left: 50%;
  transform: translateX(-50%);
  width: 380px; /* lateral width restored */
  height: 44px; /* vertical increase */
  display: flex;
  align-items: center;
  z-index: 9999;
  background: linear-gradient(180deg, #003366, #002b55);
  color: #fff;
}

.login-card > .banner::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #f7c400;
}

.banner {
  position: relative;
}

.banner .inner {
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #fff;
}

.banner .cerner-logo {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

.banner .product-name.large {
  font-size: 18px;
  margin-left: 6px;
  opacity: 0.98;
  text-align: center;
  color: #fff;
}

.login-panel {
  background: #003366;
  padding: 20px 24px;
  color: #dfeff8;
  margin: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 12px;
}

.form-row label {
  width: auto;
  text-align: left;
  font-size: 12px;
  color: #dfeff8;
  padding-right: 0;
  margin-bottom: 6px;
}

.form-row input, .form-row select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #c6d0d9;
  background: #fff;
  color: #0b2e3f;
  font-size: 12px;
}

.form-row select {
  appearance: auto;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-cerner {
  background: linear-gradient(#d0d0d0, #9b9b9b);
  border: 1px solid #666;
  padding: 4px 18px;
  color: #111;
  cursor: pointer;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.error-message {
  display: none;
  color: #ffdddd;
  background: #430000;
  padding: 6px;
  border-radius: 2px;
  margin-top: 4px;
  text-align: center;
  font-size: 12px;
}

.error-message.show {
  display: block;
}

.page-footer {
  position: fixed;
  left: 18px;
  bottom: 12px;
  color: #e6eef5;
  font-size: 11px;
  z-index: 40;
}

@media (max-width: 410px) {
  .login-box {
    width: 92%;
  }
}
