/* Ubuntu at the Table - shared styles for the check and toolkit pages.
   Lifted from the original Ubuntu.php so the look carries over. */

:root {
  --bg-image: url('/Ubuntu/assets/Background.jpg');
  --overlay-color: rgba(26, 26, 26, 0.4);
  --card-bg: #ffffff;
  --accent: #2bd4cf;
  --focus: #F6BD49;
  --ink: #0f172a;
  --muted: #556070;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.hero {
  position: relative;
  min-height: 100dvh;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-color);
  z-index: 0;
}

.center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 460px);
  z-index: 1;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  background: var(--card-bg);
  padding: 32px 26px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  width: 100%;
}

[hidden] { display: none !important; }

h2 { margin: 0; font-size: 1.5rem; text-align: center; color: var(--ink); }
p  { margin: 0; text-align: center; font-size: .96rem; color: var(--muted); }

.note { font-size: .85rem; line-height: 1.5; }

.msg { min-height: 1.2em; font-size: .9rem; }
.msg.error { color: #b3261e; }
.msg.ok    { color: #137D3F; }

/* --- Floating-label field ------------------------------------------- */
.field {
  position: relative;
  width: 100%;
  --label-x: 16px;
  --notch-pad-right: 8px;
}

.field input[type="email"] {
  width: 100%;
  padding: 20px 16px 14px;
  font-size: 1.05rem;
  border: none;
  background: transparent;
  border-radius: 14px;
  caret-color: var(--accent);
}

.field input::placeholder { color: transparent; }
.field input:focus, .field input:focus-visible { outline: none; }

.field fieldset {
  position: absolute; inset: 0;
  margin: 0; padding: 0;
  pointer-events: none;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px #d1d5db;
  transition: box-shadow .2s ease;
  z-index: 0;
}

.field legend { padding: 0; height: 0; margin-left: calc(var(--label-x) - 2px); }

.field legend span {
  display: inline-block; width: 0; padding: 0; overflow: hidden; line-height: 0;
  background: var(--card-bg); color: transparent;
  transition: padding .2s ease, width .2s ease;
}

.field label {
  position: absolute; left: var(--label-x); top: 50%;
  transform: translateY(-50%); transform-origin: left top;
  color: #7a8290; font-size: 1.05rem; letter-spacing: .2px;
  pointer-events: none; padding: 0 6px; background: var(--card-bg);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), color .2s ease;
  z-index: 1;
}

.field:focus-within fieldset,
.field input:not(:placeholder-shown) ~ fieldset {
  box-shadow: inset 0 0 0 2px var(--focus);
}

.field:focus-within label,
.field input:not(:placeholder-shown) ~ label {
  transform: translateY(-160%) scale(.88);
  color: var(--focus);
}

.field:focus-within legend span,
.field input:not(:placeholder-shown) ~ legend span {
  padding-right: var(--notch-pad-right);
  width: auto;
}

/* --- Buttons --------------------------------------------------------- */
.form-actions { display: flex; gap: 10px; width: 100%; }

button,
.form-btn,
.download-btn {
  flex: 1;
  text-align: center;
  background: #000;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.form-btn:hover,
.download-btn:hover { background: #54595F; }

button:disabled { opacity: .6; cursor: default; }

.download-btn { width: 100%; padding: 16px 18px; }
