:root {
  --metos-navy: #0b1e34;
  --metos-gold: #ca9914;
  --metos-gold-hover: #d4ac41;
  --metos-ivory: #f6f4ee;
  --text: #0b1e34;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  font-family: "Instrument Sans", Arial, sans-serif;
  color: var(--text);
  background: url("/assets/kitchen-background.jpg") center center / cover
    no-repeat fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 30, 52, 0.78) 0%,
    rgba(11, 30, 52, 0.67) 100%
  );
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 1.75rem auto 2rem;
  padding: 0 1rem;
}

.brand-header {
  margin-bottom: 0.85rem;
}

.brand-logo {
  width: 200px;
  max-width: 100%;
  display: block;
}

.card {
  background: rgba(246, 244, 238, 0.96);
  border-radius: 10px;
  padding: 1.5rem;
  border-top: 6px solid var(--metos-gold);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

h1 {
  margin-top: 0;
  color: var(--metos-navy);
}

.muted {
  color: #3f5168;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.panel-header h1 {
  margin: 0;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #c6ced8;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
}

.language-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 4;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #c6ced8;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 0.3rem;
}

.language-menu-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.language-menu-item:hover {
  background: #eef3f9;
}

.language-menu-item.active {
  background: rgba(202, 153, 20, 0.15);
}

.language-flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #d2d8e0;
}

.language-menu-label,
.language-menu-caret {
  font-size: 0.85rem;
}

.info-block,
.error-block {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.info-block {
  background: rgba(230, 237, 246, 0.9);
}

.warning {
  background: rgba(255, 247, 230, 0.95);
}

.error-block {
  background: rgba(255, 233, 233, 0.95);
}

.form-grid {
  display: grid;
  gap: 0.55rem;
}

.manual-device-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.captcha-wrap {
  margin-top: 0.65rem;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.2rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}

th,
td {
  border: 1px solid #d2d8e0;
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

th {
  background: #e7edf4;
}

input,
textarea,
select,
button {
  width: 100%;
  padding: 0.65rem;
  border-radius: 4px;
  border: 1px solid #c6ced8;
  font-size: 1rem;
}

button {
  border: none;
  background: var(--metos-gold);
  color: var(--metos-ivory);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}

button:hover {
  background: var(--metos-gold-hover);
  color: var(--metos-navy);
}

a {
  color: var(--metos-gold);
  font-weight: 600;
}
