body {
  background: #0a0e1a;
}

#login-wrapper {
  display: flex;
  min-height: 100vh;
  align-items: center;
}

#login-brand {
  flex: 1;
  padding: 60px;
  color: #fff;
}

#login-brand .brand-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 30px;
  display: block;
}

#login-brand h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

#login-brand p {
  color: #9aa5b1;
  font-size: 16px;
  max-width: 400px;
}

#login-card {
  flex: 0 0 420px;
  margin-right: 80px;
  background: #131826;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Force logo size — overrides Elastic defaults */
#login-card img#logo {
  max-width: 72px !important;
  width: 72px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto 16px auto !important;
  position: static !important;
}

#login-card .login-title {
  color: #fff;
  text-align: center;
  font-size: 24px;
  margin: 0 0 5px 0;
}

#login-card .login-subtitle {
  color: #9aa5b1;
  text-align: center;
  font-size: 14px;
  margin-bottom: 30px;
}

/* Reset Elastic's table-based form layout */
#login-card table,
#login-card tbody,
#login-card tr,
#login-card td {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

#login-card tr {
  margin-bottom: 18px;
}

#login-card td.title label {
  display: block;
  color: #cfd6e0;
  font-size: 13px;
  margin-bottom: 6px;
}

#login-card td.input input {
  width: 100%;
  box-sizing: border-box;
  background: #1c2333 no-repeat 14px center;
  background-size: 18px 18px;
  border: 1px solid #2a3244;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
}

#rcmloginuser {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b1' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E") !important;
}

#rcmloginpwd {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b1' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 018 0v4'/%3E%3C/svg%3E") !important;
}

#login-card td.input input:focus {
  outline: none;
  border-color: #1dd3a5;
}

#login-card .formbuttons {
  margin-top: 8px;
}

#login-card .formbuttons button {
  width: 100%;
  background: #1dd3a5;
  border: none;
  color: #06231b;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

#login-card .formbuttons button:hover {
  background: #17b891;
}

#login-footer {
  color: #6b7280;
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  #login-brand { display: none; }
  #login-card { margin: 0 auto; }
}
/* =========================================
   FINAL LOGIN FORM OVERRIDES
   ========================================= */

/* Remove Elastic's separate icon boxes above the inputs */
#login-card td.title::before,
#login-card td.title:before {
  content: none !important;
  display: none !important;
}

/* Keep the labels hidden/clean so the inputs carry the visual UI */
#login-card td.title {
  display: none !important;
}

/* Username and password inputs */
#login-card td.input input {
  position: relative;
  display: block;
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  padding: 12px 14px 12px 46px !important;
  border-radius: 9px;
}

/* Keep the icons inside the fields */
#login-card #rcmloginuser {
  background-position: 14px center !important;
  background-repeat: no-repeat !important;
  background-size: 19px 19px !important;
}

#login-card #rcmloginpwd {
  background-position: 14px center !important;
  background-repeat: no-repeat !important;
  background-size: 19px 19px !important;
}

/* Left-side branding logo */
#login-brand .brand-logo {
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  display: block !important;
  margin: 0 0 42px 0 !important;
}

/* Card logo */
#login-card img#logo {
  width: 72px !important;
  max-width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 16px auto !important;
  position: static !important;
}

/* Keep title safely below the logo */
#login-card .login-title {
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 5px !important;
}

/* Spacing between fields */
#login-card tr {
  margin-bottom: 18px !important;
}

/* Remove any Elastic-generated title/icon artifacts */
#login-card td.title::after,
#login-card td.title:after {
  content: none !important;
  display: none !important;
}
