/* Sem Foco: student phone pages. Palette and rules: docs/identidade.md. */

:root {
  --ink: #161616;
  --paper: #f4f4f2;
  --white: #ffffff;
  --blue: #1639bd;
  --blue-deep: #0b1f6e;
  --tint: #d6ddf6;
  --amber: #ffb000;
  --muted: #5c5c58;
  --line: #bdbdb8;
  --sans: Verdana, "DejaVu Sans", sans-serif;
  --mono: Consolas, Menlo, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
}

button, input { font: inherit; outline: none; }
[tabindex="-1"] { outline: none; }

.top { max-width: 34rem; margin: 0 auto; padding: 1rem 1rem 0; }
.mark { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.mark .ghost {
  color: transparent;
  text-shadow: 0 0 0.05em rgba(22, 22, 22, 0.95), -0.07em 0 0.1em rgba(22, 22, 22, 0.35), 0.07em 0 0.1em rgba(22, 22, 22, 0.35);
}

.screen {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

h1 { font-size: 1.6rem; margin: 0 0 0.75rem; line-height: 1.25; }
h2 { font-size: 1.25rem; margin: 1rem 0 1rem; line-height: 1.35; }
p { margin: 0 0 1rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.1rem 1rem;
}

.muted { color: var(--muted); }
.error { color: var(--ink); font-weight: 700; }

.btn {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  margin: 0.6rem 0 0;
  padding: 0.75rem 1rem;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.btn:disabled { opacity: 0.5; cursor: default; }
.btn:hover:not(:disabled), .btn:focus:not(:disabled) { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn.secondary { background: var(--white); color: var(--blue); }
.btn.secondary:hover:not(:disabled), .btn.secondary:focus:not(:disabled) { background: var(--tint); border-color: var(--blue); color: var(--blue-deep); }

.opt {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  margin: 0 0 0.6rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
}

.opt:hover, .opt:focus { border-color: var(--blue); background: #eef1fc; }
.opt.selected { border-color: var(--blue); background: var(--tint); font-weight: 700; }

/* The code field sits inside autofocus brackets: the focus lands where the code goes. */
.pin-field { position: relative; margin: 0.5rem 0 0; padding: 0.6rem; }
.af { position: absolute; width: 1.2rem; height: 1.2rem; border: 0 solid var(--amber); }
.af.tl { top: 0; left: 0; border-top-width: 0.2rem; border-left-width: 0.2rem; }
.af.tr { top: 0; right: 0; border-top-width: 0.2rem; border-right-width: 0.2rem; }
.af.bl { bottom: 0; left: 0; border-bottom-width: 0.2rem; border-left-width: 0.2rem; }
.af.br { bottom: 0; right: 0; border-bottom-width: 0.2rem; border-right-width: 0.2rem; }

.pin {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 2rem;
  letter-spacing: 0.5rem;
  text-align: center;
}

.pin:focus { border-color: var(--blue); background: #eef1fc; }

label { display: block; font-weight: 700; }

progress {
  display: block;
  width: 100%;
  height: 0.75rem;
  margin: 0 0 0.4rem;
  accent-color: var(--blue);
}

.step { margin: 0; font-size: 0.95rem; color: var(--muted); }

.sign-off { margin-top: 2rem; }
.sign-off img { display: block; width: 11rem; height: auto; margin-left: -0.5rem; }
