* { box-sizing: border-box; }

:root {
  --brand: #211e16;
  --brand-dark: #3a352c;
  --accent: #df8b56;
}

body {
  margin: 0;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f6f5f2;
  color: #262220;
  display: flex;
  justify-content: center;
}

.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
  background: #f2efea;
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8a8078;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--brand);
  color: #fff;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 20px;
}

#brand-logo {
  display: block;
  max-width: 220px;
  max-height: 90px;
  width: auto;
  height: auto;
  margin: 0 0 16px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 6px;
  color: #4a433f;
}

.row {
  display: flex;
  gap: 12px;
}
.row label { flex: 1; }

input, select, textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid #d8d3cc;
  border-radius: 8px;
  background: #fff;
  color: #262220;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

select:disabled {
  color: #262220;
  background: #f2efea;
  opacity: 1;
}

.hint {
  font-weight: 400;
  font-size: 0.75rem;
  color: #8a8078;
}

button {
  margin-top: 6px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

button:hover:not(:disabled) {
  background: var(--brand-dark);
}

#message {
  margin: 4px 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

#message.error { color: #b3261e; }
#message.success { color: #2e7d32; }
