/*
 * Opgeschoonde stylesheet voor de lokale kopie van de Zimbra login-pagina.
 * Vervangt de ~59 KB gebundelde client-CSS (common + zhtml + skin) door alleen
 * de regels die de loginpagina nodig heeft. Kleuren en logo's komen uit het
 * origineel (skin "harmony" / online). Centrering is gemoderniseerd naar flexbox
 * i.p.v. de oorspronkelijke absolute-positie + negatieve-marge hack.
 */

:root {
  --box-blue:   #007CC3;
  --dark-blue:  #005d92;
  --hover-blue: #3f9cd2;
  --text-grey:  #656565;
}

* { box-sizing: border-box; }

html { font-size: 12px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  color: #333;
}

.login-screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Blauwe loginbox ---- */
.content-box {
  background-color: var(--box-blue);
  width: 500px;
  max-width: calc(100% - 32px);
  padding: 10px 0 1em;
  border-radius: 3px;
}

.banner {
  margin: 0 30px 30px;
  overflow: hidden;
}

.banner a { display: inline-block; }

.login-banner {
  display: block;
  width: 440px;
  max-width: 100%;
  height: 60px;
  background: url(assets/LoginBanner.png) no-repeat bottom left;
  background-size: contain;
  cursor: pointer;
}

.app-name {
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ---- Formulier ---- */
.login-form {
  color: #fff;
  padding: 0 30px;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.field-row > label:first-child {
  flex: 0 0 90px;
  text-align: right;
}

.login-field {
  flex: 1;
  border-radius: 5px;
  border: 1px solid #999;
  padding: 4px 6px;
  font-size: 1rem;
}

.submit-row > span { flex: 0 0 90px; }

.submit-row > div {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
}

.login-button {
  margin-left: auto;
  background-color: var(--box-blue);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 3px;
  font-size: 1em;
  padding: 4px 16px;
  cursor: pointer;
}
.login-button:hover  { background-color: var(--hover-blue); color: #333; }
.login-button:active { background-color: var(--dark-blue); }

.login-form hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin: 14px 0;
}

/* ---- Version-rij + "What's This?" ---- */
.positioning {
  position: relative;
  z-index: 20;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.positioning select {
  border-radius: 5px;
  padding: 3px;
}

.positioning a {
  color: #fff;
  font-size: 0.95rem;
}

.info-message {
  background-color: #fff;
  border: 1px solid var(--dark-blue);
  color: #333;
  padding: 8px 12px;
  text-align: left;
  box-shadow: 0 0 2px #000;
  border-radius: 3px;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  width: 320px;
  max-width: 90vw;
  z-index: 30;
}

.info-message h3 { text-align: center; margin: 0 0 8px; }
.info-message p  { margin: 0 0 8px; }
.info-message p:last-child { margin-bottom: 0; }

/* ---- Footer ---- */
.footer {
  text-align: center;
  margin-top: 24px;
  width: 100%;
}

.legal-notice { font-size: 1rem; color: var(--text-grey); }
.legal-notice a { color: var(--dark-blue); text-decoration: none; }
.legal-notice a:hover { text-decoration: underline; }

.copyright {
  margin-top: 5px;
  font-size: 1rem;
  color: var(--text-grey);
}

/* ---- Toegankelijkheid ---- */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
