/* The sign-in page — standalone, so it loads before (and without) the app. Modelled on the HIS Atlas sign-in. */
:root {
  --card: #fff; --ink: #17302b; --mut: #5b6f6a; --line: #d8e3e0;
  --brand: #0f766e; --brand2: #14a394; --brandink: #115e59; --hi: #b42318;
  --shadow: 0 1px 2px rgba(16, 40, 60, .06), 0 10px 30px rgba(16, 40, 60, .12);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px;
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; color: var(--ink);
  background: linear-gradient(140deg, #0b4f49, #0f766e 45%, #14a394);
}
.wrap { width: 100%; max-width: 430px; }
.card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 26px 26px 22px; }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.brand .logo { width: 46px; height: 46px; flex: none; border-radius: 12px; background: #e3f3f0; color: var(--brand); display: grid; place-items: center; }
.brand h1 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; }
form { display: flex; flex-direction: column; }
label { font-size: 13.5px; font-weight: 600; color: var(--mut); margin: 12px 0 6px; }
input {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 16px; font-family: inherit;
  background: #fbfdfd; color: var(--ink);
}
input:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 3px rgba(20, 163, 148, .18); background: #fff; }
button {
  margin-top: 20px; border: 0; border-radius: 10px; padding: 12px 16px; font-size: 16px; font-weight: 700; font-family: inherit;
  color: #fff; background: var(--brand); cursor: pointer;
}
button:hover:not(:disabled) { background: var(--brandink); }
button:disabled { opacity: .6; cursor: default; }
.err {
  margin-top: 14px; background: #fdf3f3; border: 1px solid #f3d4d4; border-inline-start: 3px solid var(--hi);
  border-radius: 8px; padding: 9px 12px; font-size: 14px; color: #8f2f2f;
}
.setup {
  margin-top: 16px; background: #fff8ef; border: 1px solid #f0e0c8; border-inline-start: 3px solid #e08a2b;
  border-radius: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.7; color: #5c4420;
}
.setup code { background: #f6ecdb; border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
