/* Chatbot login page branding for LibreChat v0.8.7 (injected into index.html at deploy time).
   Only applies to the login page: the wrapper that contains the login form.
   Template: deploy-chatbot.sh fills {{CHATBOT_TITLE}}, {{PHOTO_CREDIT}}, {{COURTESY}}, {{BACKGROUND}}
   from profiles/<name>/profile.env and ships it as login.css next to the background image. */

#root > div.min-h-screen:has(form[aria-label="Login form"]) {
  background:
    linear-gradient(rgba(10, 30, 60, 0.45), rgba(10, 30, 60, 0.45)),
    url("login-bg.jpg") center / cover no-repeat fixed;
}

/* Logo hangs from the top edge, like on code-server */
#root > div.min-h-screen:has(form[aria-label="Login form"]) > div.h-10:first-child {
  height: 100px;
  margin-top: 0;
}

/* Login card: rounded with a shadow on every screen size, workshop title above "Welcome back" */
#root > div.min-h-screen:has(form[aria-label="Login form"]) main > div {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  padding-top: 28px;
  padding-bottom: 28px;
  margin: 0 16px;
}
#root > div.min-h-screen:has(form[aria-label="Login form"]) main > div::before {
  content: "EDIH Chatbot";
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #154273; /* Rijksoverheid blue */
  margin-bottom: 8px;
}
.dark #root > div.min-h-screen:has(form[aria-label="Login form"]) main > div::before {
  color: #8fb3dc;
}

/* Theme toggle sits on the photo: give its white box the same rounding */
#root > div.min-h-screen:has(form[aria-label="Login form"]) > div.absolute > div {
  background: transparent;
}

#root > div.min-h-screen:has(form[aria-label="Login form"])::after {
  content: "";
  position: fixed;
  right: 12px;
  bottom: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Course credit, bottom centre */
#root > div.min-h-screen:has(form[aria-label="Login form"])::before {
  content: "Courtesy of AI proeflokaal, www.aiproeflokaal.nl";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
