/* The public index page (recruiting) only -- white, the words "Coming
   soon", and the login in the top right corner. The admin side keeps
   css/portal.css and the agent side css/agent.css. */
:root {
  --bg: #ffffff;
  --text: #1a2230;
  --text-muted: #6b7584;
  --border: #d9dee5;
  --primary: #2f6fde;
  --primary-hover: #2459b8;
  --error: #c8392f;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --header-height: 3.5rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  /* Room for the fixed header, so it never covers the page. */
  padding-top: var(--header-height);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Login: a fixed header across the top, the form on the right --- */

.public-login {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.public-login form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.public-login input {
  width: 11rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

.public-login input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.public-login button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--primary);
  color: #fff;
}

.public-login button:hover {
  background: var(--primary-hover);
}

/* A login error shows just under the header, on the right. */
#result {
  position: absolute;
  top: 100%;
  right: 1.5rem;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

#result.error {
  color: var(--error);
}

/* --- The page itself --- */

.public-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.public-soon {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

@media (max-width: 560px) {
  :root {
    --header-height: 8.5rem;
  }

  .public-login {
    padding: 0 1rem;
  }

  #result {
    right: 1rem;
  }

  .public-login input {
    width: 100%;
  }

  .public-login form {
    width: 100%;
  }

  .public-login button {
    width: 100%;
  }
}
