/* Stump Cloud portal styles (task M1-04). */

:root {
  --text: #1d2125;
  --muted: #5c6670;
  --border: #d8dde2;
  --accent: #1f5fbf;
  --danger-bg: #fdecea;
  --danger-text: #8a1c12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

a {
  color: var(--accent);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.account {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

main {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.notice {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background: var(--danger-bg);
  color: var(--danger-text);
  box-shadow: 0 2px 6px rgb(0 0 0 / 15%);
  z-index: 10;
}

.notice[hidden] {
  display: none;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* The unverified-email banner on signed-in pages (task M1-08). */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e6c36a;
  border-radius: 0.25rem;
  background: #fff8e1;
}

.banner p,
.banner form {
  margin: 0;
}

/* The problems with a submitted form (task M1-08). */
.form-problems {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  background: var(--danger-bg);
  color: var(--danger-text);
}

.form-problems p,
.form-problems ul {
  margin: 0;
}
