/* Register / confirm / sign in of a hosted em_solver Studio: the colours of the workbench (app.css), one centred card */
:root {
  --bg: #1b1e26; --bg2: #171a21; --panel: #232733; --field: #141720; --line2: #3a4258;
  --fg: #d7dde8; --dim: #8d97ab; --dim2: #6f7a8e; --accent: #3d7bd9; --ok: #81c784; --err: #e57373;
  --mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { height: 100%; }
body { min-height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(1200px 700px at 50% -10%, #263148 0%, var(--bg) 55%, var(--bg2) 100%) fixed; color: var(--fg);
  font: 14px/1.5 "Segoe UI", Inter, system-ui, -apple-system, sans-serif; }
button, input { font: inherit; color: inherit; }
.card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 26px 28px 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45); }
.brand { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #323848; }
.brand img { width: 40px; height: 40px; }
.brand h1 { font-size: 17px; margin: 0; font-weight: 600; }
.brand p { margin: 0; color: var(--dim); font-size: 12.5px; }
h2 { font-size: 19px; margin: 0 0 6px; font-weight: 600; }
.lead { color: #b8c2d4; margin: 0 0 6px; }
.lead b { color: var(--fg); word-break: break-all; }
label { display: block; margin: 14px 0 5px; font-size: 12.5px; color: #b8c2d4; }
input { width: 100%; background: var(--field); border: 1px solid var(--line2); border-radius: 6px; padding: 9px 11px; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 123, 217, .25); }
input.bad { border-color: var(--err); }
input.code { font: 600 24px/1.2 var(--mono); letter-spacing: .42em; text-align: center; padding: 11px 6px 11px calc(6px + .42em); }
input.code::placeholder { color: #3a4258; }
.pw { position: relative; }
.pw input { padding-right: 62px; }
.eye { position: absolute; right: 5px; top: 5px; bottom: 5px; padding: 0 9px; background: none; border: 0; border-radius: 4px; color: var(--dim);
  font-size: 12px; cursor: pointer; }
.eye:hover, .eye:focus-visible { color: var(--fg); background: #2b3040; outline: none; }
.note { color: var(--dim2); font-size: 12px; margin: 6px 0 0; }
.msg { min-height: 0; margin: 12px 0 0; font-size: 13px; color: var(--err); }
.msg:empty { display: none; }
.msg.ok { color: var(--ok); }
button.primary { width: 100%; margin-top: 16px; background: #2e6fcf; border: 1px solid #4b8be6; border-radius: 6px; padding: 10px 12px; font-weight: 600;
  cursor: pointer; }
button.primary:hover { background: #3a7fe0; }
button.primary:focus-visible { outline: 2px solid #9cc2ff; outline-offset: 2px; }
button.primary:disabled { background: #2b3040; border-color: var(--line2); color: var(--dim); cursor: default; }
.switch { margin: 16px 0 0; text-align: center; color: var(--dim); font-size: 13px; }
a, button.link { color: #7fb0f5; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
a:hover, button.link:hover { text-decoration: underline; }
button.link:disabled { color: var(--dim2); cursor: default; text-decoration: none; }
.switch + .note { text-align: center; margin-top: 10px; }
@media (max-width: 440px) { .card { padding: 22px 18px 18px; } }

/* single sign-on, above the e-mail forms */
.sso { margin-top: 16px; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0;
  border-radius: 6px; padding: 9px 12px; font-weight: 600; text-decoration: none; }
.sso-btn:hover { background: #f1f3f4; text-decoration: none; }
.sso-btn:focus-visible { outline: 2px solid #9cc2ff; outline-offset: 2px; }
.sso-btn svg { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 -2px; color: var(--dim2); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #323848; }
.note.agree { text-align: center; margin-top: 10px; }
.card .legal { margin-top: 20px; padding-top: 14px; border-top: 1px solid #323848; }
