:root {
  --bg: #141516; /* charcoal board */
  --panel: #101112; /* slightly darker */
  --chalk: #f1eee6; /* warm chalk, not pure white */
  --chalk-soft: #cfc8bb; /* muted chalk */
  --line: rgba(241, 238, 230, 0.14);
  --focus: rgba(241, 238, 230, 0.55);
}

/* Base */
.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--chalk);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px; /* mobile breathing room */
}

/* Subtle “chalk dust” / board texture (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(
      1200px 600px at 20% 10%,
      rgba(241, 238, 230, 0.06),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 80% 30%,
      rgba(241, 238, 230, 0.05),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 40% 85%,
      rgba(241, 238, 230, 0.04),
      transparent 60%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(241, 238, 230, 0.015),
      rgba(241, 238, 230, 0.015) 1px,
      transparent 1px,
      transparent 6px
    );
}

/* Container */
.wrap {
  width: 100%;
  max-width: 520px;
  padding: 28px 22px;
}

/* Text */
h1 {
  margin: 0 0 10px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chalk-soft);
}

.lede {
  margin: 0 0 22px 0;
  text-align: center;
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.6;
  color: var(--chalk-soft);
}

/* Card */
.card {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.1);
  padding: 18px;
  backdrop-filter: blur(2px);
}

/* Form */
label {
  display: block;
  margin: 14px 0 8px 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk-soft);
}

input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--chalk);
  font-size: 15px;
  outline: none;
}

/* “Chalk line” focus */
input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(241, 238, 230, 0.08);
}

/* Button */
button {
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(241, 238, 230, 0.55);
  background: transparent;
  color: var(--chalk);
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
}

button:hover {
  opacity: 0.88;
}

/* Footer */
.footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--chalk-soft);
}

/* Mobile tweaks */
@media (max-width: 420px) {
  .wrap {
    padding: 18px 14px;
  }
  .card {
    padding: 16px;
  }
}

/* Full-screen chalkboard */
body {
  margin: 0;
  min-height: 100vh;
  background: url("/media/blackboard_background.jpeg") no-repeat center center
    fixed;
  background-size: cover;
}

/* HERO (logo area) */
.hero {
  margin-bottom: 60px;
}

.brand {
  width: 540px; /* make it bigger */
  max-width: 90%;
  height: auto;
  margin-bottom: 25px;
}

/* Login panel */
.panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: min(520px, 92vw);
  box-shadow: none;
  backdrop-filter: none;
  margin: 0 auto;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -18px -18px -18px -18px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

.panel-head {
  text-align: left;
  margin-bottom: 18px;
}

.panel-title {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.panel-note {
  font-size: 14px;
  opacity: 0.75;
  margin-top: 6px;
}

.field {
  margin: 18px 0;
  text-align: left;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}

.field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(232, 223, 204, 0.35);
  color: #e8dfcc;
  padding: 10px 0 12px;
  outline: none;
  font-size: 16px;
}

.field input:focus {
  border-bottom-color: rgba(232, 223, 204, 0.8);
}

.actions {
  margin-top: 22px;
  text-align: left;
}

.actions button {
  background: transparent;
  color: #e8dfcc;
  border: 1px solid rgba(232, 223, 204, 0.45);
  padding: 10px 18px;
  border-radius: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.actions button:hover {
  border-color: rgba(232, 223, 204, 0.85);
}

/* Footer spacing */
.footer {
  margin-top: 60px;
  opacity: 0.7;
}

a {
  color: #e8dfcc;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 223, 204, 0.35);
}

a:hover {
  border-bottom-color: rgba(232, 223, 204, 0.85);
}
