/* Sign-in page: the same ink-blue night, IBM Plex Sans Arabic and yellow tag as the assistant (styles.css). */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ink: #0e3b43;
  --muted: #5a6e71;
  --surface: #ffffff;
  --line-strong: #9fb3ad;
  --tag: #f2c230;
  --tag-ink: #3a2e00;
  --bad: #9c3328;
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
}

.login {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.login__card {
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.35);
}

.login__logo {
  align-self: center;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.login__title {
  margin: 0;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
}

.login__hint {
  margin: 0 0 6px;
  text-align: center;
  color: var(--muted);
}

.login__label {
  font-size: 0.8125rem;
  color: var(--muted);
}

.login__input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.login__input:focus-visible,
.login__button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.login__error {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--bad);
  background: #fbeeec;
  border-radius: 8px;
}

.login__button {
  margin-top: 4px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  color: var(--tag-ink);
  background: var(--tag);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.login__button:hover {
  filter: brightness(0.95);
}
