@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html, body {
  height: 100%;
}

body {
  background: #0a1929;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e0e6ed;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow backgrounds */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(42,170,192,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(245,166,35,0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Brand logo block injected above the login card ---- */
#nyakoma-logo-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 1.2rem 0;
}

/* ---- Login card ---- */
body > div:first-of-type,
#main,
.main-content {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(42,170,192,0.25) !important;
  border-radius: 16px !important;
  padding: 2.5rem 2.8rem !important;
  width: 420px !important;
  max-width: 95vw !important;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(42,170,192,0.1) inset !important;
}

/* Headings */
h1, h2, h3, h4, h5, legend {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
  line-height: 1.3 !important;
  margin-bottom: 1.5rem !important;
}

/* Labels */
label {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.35rem !important;
  display: block !important;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100% !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(42,170,192,0.3) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  font-family: 'Inter', sans-serif !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  margin-bottom: 1rem !important;
  outline: none !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: #2aaac0 !important;
  box-shadow: 0 0 0 3px rgba(42,170,192,0.18) !important;
  background: rgba(255,255,255,0.1) !important;
}

input::placeholder {
  color: rgba(255,255,255,0.25) !important;
}

/* Submit / Login button */
input[type="submit"],
button[type="submit"],
.btn-login,
.btn-primary,
button.btn {
  width: 100% !important;
  background: linear-gradient(135deg, #2aaac0, #1d8fa3) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.85rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  font-family: 'Inter', sans-serif !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  margin-top: 0.5rem !important;
  box-shadow: 0 4px 15px rgba(42,170,192,0.35) !important;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.btn-login:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(42,170,192,0.5) !important;
}

/* Links */
a {
  color: #2aaac0 !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
}
a:hover {
  color: #f5a623 !important;
  text-decoration: underline !important;
}

/* Alert / error messages */
.alert, .alert-danger, .error-message, .text-danger {
  background: rgba(220,53,69,0.15) !important;
  border: 1px solid rgba(220,53,69,0.35) !important;
  color: #ff8a9b !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.85rem !important;
  margin-bottom: 1rem !important;
}

/* Footer / copyright text */
.portal-footer, footer, .footer-text {
  color: rgba(255,255,255,0.2) !important;
  font-size: 0.72rem !important;
  text-align: center !important;
  margin-top: 1.5rem !important;
}

/* Hide default OpenEMR branding we replaced */
.navbar-brand, .powered-by {
  display: none !important;
}
