/*
 * Sign-in page. Kept in its own file so the Content-Security-Policy can
 * stay strict (no 'unsafe-inline').
 */

/* Inlined so the login page needs no authenticated asset requests. */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #07090d;
  color: #f4f7fb;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans Hebrew", "Liberation Sans", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.card {
  width: 100%;
  max-width: 640px;
  background: #141a24;
  border: 1px solid #232c3a;
  border-radius: 18px;
  padding: 5vh 5vh 4vh;
}
h1 {
  margin: 0 0 0.6em;
  font-size: clamp(28px, 4.4vh, 52px);
  font-weight: 700;
  letter-spacing: 0.02em;
}
p.sub {
  margin: 0 0 2em;
  color: #8b98ac;
  font-size: clamp(15px, 2.2vh, 24px);
}
label {
  display: block;
  font-size: clamp(13px, 1.9vh, 20px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f7d92;
  margin: 0 0 0.6em;
}
input {
  width: 100%;
  /* Credentials are latin; keep the caret and text left-to-right. */
  direction: ltr;
  text-align: left;
  margin: 0 0 1.4em;
  padding: 0.7em 0.8em;
  font-size: clamp(18px, 3vh, 32px);
  font-family: inherit;
  color: #f4f7fb;
  background: #0b0f16;
  border: 2px solid #2c3648;
  border-radius: 10px;
}
input:focus {
  outline: none;
  border-color: #7c9cff;
}
button {
  width: 100%;
  padding: 0.75em;
  font-size: clamp(18px, 3vh, 32px);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #07090d;
  background: #7c9cff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
button:focus { outline: 3px solid #f4f7fb; outline-offset: 3px; }
.error {
  margin: 0 0 1.4em;
  padding: 0.8em 1em;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff9a9a;
  font-size: clamp(15px, 2.2vh, 22px);
}
.error[hidden] { display: none; }
