/* ===== Базова тема ===== */
:root { --w: 360px; --gap: 18px; }
* { box-sizing: border-box; }

.bg-dark { background:#dca80c; } /* жовтий бекграунд */
.text { color:#e6e6e6; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* Відступ зверху під фіксовану панель */
.wrap { min-height: 80vh; padding: 8px 24px 24px; }
.center { display:flex; align-items:center; justify-content:center; }

/* ===== Карта логіна та пост-логін блок ===== */
.card {
  width: min(92vw, var(--w));
  background:#d62718;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  overflow: hidden;
}

/* ===== Фіксована верхня жовта панель ===== */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;                 /* тонка смужка; можна 48px якщо хочеш ще тонше */
  background: #dca80c;          /* такий самий жовтий, як фон */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
}
.muted{
  color: #2a1d0b;               /* контрастно на жовтому */
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.muted:hover { text-decoration: underline; }

/* ===== Контейнер кнопок усередині card ===== */
.panel {
  width: 100%;
  display:flex; flex-direction:column; align-items:stretch;
  gap:18px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ===== ЛОГО ===== */
.logo-box {
  width: 100%;
  height: 220px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: var(--gap);
  background:#0f1115;
  border-radius:12px;
  overflow: hidden;
}
.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== ФОРМА (логін) ===== */
.form { display:block; width:100%; }
.field { display:flex; flex-direction:column; gap:8px; margin-bottom: var(--gap); }
.field label { font-size:16px; color:#f3f3f3; }

input[type="text"],
input[type="password"] {
  display:block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a2f3d;
  background: #e6e6e6;
  color: #2a2f3d;
  outline: none;
  font-size: 16px;
}
input[type="text"]:focus,
input[type="password"]:focus {
  border-color:#4c8bf5;
  box-shadow: 0 0 0 3px rgba(76,139,245,0.18);
}

.btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.btn.primary { background:#fdc92b; color:#fff; }
.btn.primary:hover { filter: brightness(1.05); }

.error { color:#ff8080; margin-bottom: var(--gap); }

/* ===== ВЕЛИКІ КНОПКИ ===== */
.big-btn {
  width: 100%;
  max-width: 100%;
  height: 15vh; min-height: 64px;
  display:flex; align-items:center; justify-content:center;
  border:none; border-radius:16px; font-size:20px; font-weight:800; cursor:pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform .06s ease, filter .15s ease;
}
.big-btn:active { transform: translateY(1px); }

/* Бургер-палітра */
.btn1 {
  background-color:#F3B34C;  /* верхня булочка */
  color:#2a1d0b;

  /* кунжут як точки */
  background-image: radial-gradient(#fff 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.btn1:hover { filter: brightness(1.03); }

.btn2 {
  background:#6B3E2E;        /* яловичина */
  color:#ffffff;
}
.btn2:hover { filter: brightness(1.06); }

.btn3 {
  background:#E0A148;        /* нижня булочка */
  color:#2a1d0b;
}
.btn3:hover { filter: brightness(1.03); }

.note { color:#ffffff; font-size:14px; text-align:center; font-weight:600; }
.msg  { color:#ffffff; font-size:15px; text-align:center; min-height:1.2em; }

/* Приховані інпути вибору файлів */
input[type=file] { display:none; }

/* Дрібна оптимізація для iOS */
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px; }
}
