/* EFM Intranet — gate/login/403 stylesheet.
 * Uses brand colours from /Users/cyrillhaenni/CLAUDE.md:
 *   Accent 1  #005C64  dark teal   (header rule)
 *   Accent 2  #0F2340  primary text
 *   Accent 3  #268C70  mid green   (focus / links)
 *   Accent 4  #45B978  light green (primary button)
 *   Accent 5  #A6CE3A  yellow-green (hover)
 *   Accent 6  #CCC7C2  light grey (card background)
 */

:root {
  --efm-dark-teal: #005C64;
  --efm-ink:       #0F2340;
  --efm-green-mid: #268C70;
  --efm-green-lt:  #45B978;
  --efm-yg:        #A6CE3A;
  --efm-grey:      #CCC7C2;
  --efm-bg:        #F6F5F2;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Calibri", "Segoe UI", system-ui, sans-serif;
  color: var(--efm-ink);
  background: var(--efm-bg);
  min-height: 100vh;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate {
  width: min(420px, 90vw);
  padding: 48px 40px 40px;
  background: white;
  border-top: 6px solid var(--efm-dark-teal);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(15, 35, 64, 0.08);
}

.gate-brand {
  font-size: 22px;
  font-weight: 600;
  color: var(--efm-dark-teal);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.gate-h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--efm-ink);
}

.gate-lead {
  font-size: 15px;
  color: var(--efm-ink);
  opacity: 0.85;
  line-height: 1.5;
  margin: 0 0 24px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-label {
  font-size: 13px;
  color: var(--efm-ink);
  opacity: 0.75;
  font-weight: 500;
}

.gate-form input[type="password"],
.gate-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--efm-ink);
  background: white;
  border: 1px solid var(--efm-grey);
  border-radius: 4px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.gate-form input[type="password"]:focus,
.gate-form input[type="text"]:focus {
  border-color: var(--efm-green-mid);
  box-shadow: 0 0 0 3px rgba(38, 140, 112, 0.15);
}

/* Password show/hide toggle — overlay an eye button inside the input */
.gate-input-wrap {
  position: relative;
}
.gate-input-wrap input {
  padding-right: 44px !important;
}
.gate-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--efm-ink);
  opacity: 0.5;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 120ms ease, background 120ms ease;
}
.gate-toggle:hover { opacity: 0.85; background: rgba(15, 35, 64, 0.05); }
.gate-toggle:focus-visible { outline: 2px solid var(--efm-green-mid); outline-offset: 1px; opacity: 0.85; }
.gate-toggle svg { width: 18px; height: 18px; display: block; }

.gate-form button[type="submit"] {
  padding: 12px 18px;
  margin-top: 8px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  color: white;
  background: var(--efm-green-lt);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 120ms ease;
}

.gate-form button[type="submit"]:hover {
  background: var(--efm-green-mid);
}

.gate-error {
  margin: 4px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #8A1C10;
  background: #FDECEA;
  border-left: 3px solid #D64545;
  border-radius: 2px;
}

.gate-footnote {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--efm-ink);
  opacity: 0.6;
}

.gate-links {
  margin: 24px 0 0;
  font-size: 14px;
}

.gate-links a {
  color: var(--efm-green-mid);
  text-decoration: none;
}

.gate-links a:hover {
  color: var(--efm-dark-teal);
  text-decoration: underline;
}

.gate-sep {
  color: var(--efm-grey);
  margin: 0 8px;
}
