@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

/* ── Design Tokens ─────────────────────────── */
:root {
  --sky:        #3BB8E8;
  --sky-dark:   #2da5d4;
  --sky-card:   #2faee0;
  --salmon:     #F08080;
  --salmon-dark:#e06060;
  --black:      #111111;
  --white:      #ffffff;
  --out-red:    #E05C5C;
  --border:     2px solid #111;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-pill:999px;
  --shadow:     3px 3px 0px #111;
  --text-shadow: -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
  --text-shadow-2: -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
  --font-display: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100%;
  height: 100%;
  font-family: var(--font-body);
  background: var(--sky);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

.back-link { text-decoration: none;
    color: white; }

/* ── Logo ──────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-img  { width: 40px; height: 40px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  text-shadow: var(--text-shadow-2)
}

/* ── Navbar ────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

/* ── Input ─────────────────────────────────── */
.input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--sky);
  border: var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  outline: none;
  transition: box-shadow 0.15s;
}
.input-field:focus { box-shadow: var(--shadow); }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border: var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
}
.btn:active { transform: translateY(2px); box-shadow: none !important; }

.btn-primary {
  background: var(--salmon);
  color: var(--white);
  box-shadow: var(--shadow);
  text-shadow: var(--text-shadow);
  width: 100%;
}
.btn-primary:hover { background: var(--salmon-dark); }

.btn-outline {
  background: transparent;
  color: var(--black);
  width: 100%;
  border: none;
}

.btn-ghost {
  color: var(--white);
  border: none;
  background: transparent;
}

/* ── Error message ─────────────────────────── */
.msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: none;
}
.msg.error { background: #fdd; border: 1px solid #e00; color: #900; display: block; }

/* ── Utility ───────────────────────────────── */
.text-center { text-align: center; }
