/* teacher studio.
 *
 * Every value below is extracted from the studio wireframes at
 * ~/Downloads/First Grade Do-Nows Wireframes/Do-Now Studio.dc.html, which is the
 * design this product actually has. Nothing here is copied from another Roots of
 * Reason property: the guitar and hub surfaces are a dark GitHub-style theme and
 * this one is a light blue classroom theme, and they are not the same system.
 *
 * From that file:
 *   body            background #e9f3fc, colour #22364a, Nunito
 *   links           #3d8fd1, hover #2a6ea6
 *   card            #fff, 1px #d9e7f2, radius 14px, padding 18px
 *   input           #f0f7fd, 1px #cfe2f1, radius 12px, 11px 15px, 14.5px
 *   heading         Nunito 800, #2b5d8c, 20-22px
 *   muted           #7d95a8 and #5b7086
 *   badge           #eef4f9 on #2b5d8c, radius 6px
 *   action blue     #3d8fd1, hover #2a6ea6 (the wireframe's own link colours)
 *   shadow          0 10px 34px rgba(43,93,140,.18)
 */

:root {
  --page:        #e9f3fc;
  --ink:         #22364a;
  --heading:     #2b5d8c;
  --muted:       #7d95a8;
  --muted-deep:  #5b7086;
  --surface:     #fff;
  --line:        #d9e7f2;
  --field:       #f0f7fd;
  --field-line:  #cfe2f1;
  --tint:        #eef4f9;
  --link:        #3d8fd1;
  --link-hover:  #2a6ea6;
  --primary:     #3d8fd1;
  --primary-dark:#2a6ea6;
  --good:        #3f7a44;
  --good-tint:   #e6f3e4;
  --warn:        #a05252;
  --warn-tint:   #fdf2f0;
  --shadow:      0 10px 34px rgba(43, 93, 140, .18);
  --font:        Nunito, Verdana, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

.page { width: 100%; max-width: 420px; }

.masthead { text-align: center; margin-bottom: 22px; }

.mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.mark svg { width: 32px; height: 32px; color: var(--heading); }

.masthead h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.masthead p { margin: 0; color: var(--muted); font-size: 13.5px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 6px;
}
.card > p { margin: 0 0 18px; color: var(--muted-deep); font-size: 13.5px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 11px 15px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #9db3c6; }
.input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(61, 143, 209, .16);
}
.input.error { border-color: #e2766b; }

.hint { font-size: 12px; color: var(--muted); margin: 5px 0 0; }

.btn {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.btn:hover:not(:disabled) { background: var(--primary-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-quiet {
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--field-line);
  margin-top: 10px;
  font-weight: 700;
}
.btn-quiet:hover:not(:disabled) { background: var(--tint); }

.swap {
  text-align: center;
  font-size: 13px;
  color: var(--muted-deep);
  margin: 16px 0 0;
}
.swap a { font-weight: 700; text-decoration: none; cursor: pointer; }
.swap a:hover { text-decoration: underline; }

.notice {
  margin: 14px 0 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  background: var(--warn-tint);
  color: var(--warn);
}

.codes {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: .04em;
  color: var(--heading);
  text-align: center;
}

.badge {
  display: inline-block;
  font: 700 11.5px var(--font);
  background: var(--tint);
  color: var(--heading);
  padding: 3px 9px;
  border-radius: 6px;
}

.foot { text-align: center; font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }

[hidden] { display: none !important; }

/* Utility classes replacing style="" attributes.
 *
 * A style attribute is inline CSS, and `style-src 'self'` blocks it. Nothing
 * errors visibly: the element renders with the rule silently dropped, so the
 * page looks subtly wrong and every status-code check still passes. Found by
 * reading the browser console, which is the only instrument that sees it. */
.flush     { margin: 0 !important; }
.spaced    { margin-top: 16px; }
.inline    { display: inline; }


/* Components that exist on the site's sign-in page and were missing here.
 * Values follow the studio wireframes, not the guitar theme they came from. */

.mark.gradient {
  background: linear-gradient(135deg, var(--link), var(--good));
  border: none;
}
.mark.gradient svg { color: #fff; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12.5px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 11px 15px;
  margin-top: 10px;
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--field-line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-outline:hover:not(:disabled) { background: var(--tint); border-color: var(--link); }
.btn-outline:disabled { opacity: .45; cursor: not-allowed; }
.btn-outline svg { width: 17px; height: 17px; flex: none; }

.helpline { text-align: center; font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }
.helpline a { font-weight: 700; text-decoration: none; cursor: pointer; }
.helpline a:hover { text-decoration: underline; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 54, 74, .55);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 70;
}
.overlay .card { max-width: 400px; text-align: center; }
.overlay .mark { margin-bottom: 14px; }
