:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --panel: #f6f9ff;
  --text: #081b4b;
  --muted: #5c6a8a;
  --accent: #3c3fa2;
  --accent-strong: #081b4b;
  --highlight: #59c7d7;
  --border: #d8e2f2;
  --shadow: 0 12px 34px rgba(8, 27, 75, 0.08);
}

@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 900;
  src: url("./fonts/Gabarito-VariableFont_wght.090cd0ba5ddc.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Gabarito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 6px 24px rgba(8, 27, 75, 0.06);
}

.site-header .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 100%;
  width: auto;
  display: block;
  max-height: 88px;
}

.site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.nav-text {
  color: var(--text);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-text {
  font-weight: 600;
  color: var(--muted);
}

.nav-link {
  border: 1px solid transparent;
  background: var(--panel);
  font-weight: 700;
}

.nav-link:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.site-main {
  padding: 32px 0;
}

.page-title {
  margin: 12px 0 18px 0;
  font-size: 34px;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 24px 0 36px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.muted {
  color: var(--muted);
  margin: 0;
}

h1 {
  margin: 8px 0 16px 0;
  font-size: 30px;
  color: var(--text);
  letter-spacing: 0.4px;
}

h2 {
  margin: 16px 0 12px 0;
  font-size: 22px;
  color: var(--text);
}

a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--highlight);
}

.form {
  margin: 16px 0 22px 0;
  background: var(--surface);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.2px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.input {
  flex: 1;
  min-width: 260px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(89, 199, 215, 0.25);
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.button {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 12px 24px rgba(60, 63, 162, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(8, 27, 75, 0.25);
  transform: translateY(-1px);
}

.button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(89, 199, 215, 0.3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.card-title {
  margin-top: 0;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.error-text {
  color: #b4232c;
  font-weight: 600;
  margin: 0;
}

.auth-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 20px 22px;
  box-shadow: var(--shadow);
  max-width: 780px;
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 10px auto 0 auto;
}

.auth-form label {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="url"] {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="url"]:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(89, 199, 215, 0.25);
}

.flash-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px 0;
}

.flash {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.flash-info {
  border-color: #59c7d7;
  background: rgba(89, 199, 215, 0.08);
}

.flash-success {
  border-color: #46b16c;
  background: rgba(70, 177, 108, 0.1);
}

.flash-warning {
  border-color: #e6b000;
  background: rgba(230, 176, 0, 0.12);
}

.flash-error,
.flash-danger {
  border-color: #b4232c;
  background: rgba(180, 35, 44, 0.08);
}

.auth-form .controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.policy-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.language-switcher {
  min-width: 220px;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 12px;
  box-shadow: var(--shadow);
}

.policy-content h1,
.policy-content h2,
.policy-content h3 {
  color: var(--text);
}

.policy-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.policy-content ul {
  padding-left: 22px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

@media (max-width: 900px) {
  .auth-form {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
