:root {
  --brand: #00E6E6;
  --strength-blue: #00E6E6;
  --warn: #ffc107;
  --bad: #7a1f16;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1 0 auto;
}

.main-logo {
  text-align: center;
  margin-top: 20px;
  background: #f9f9f9;
  padding: 10px 0 6px;
}

.main-logo-link {
  display: inline-block;
  text-decoration: none;
}

.main-logo-link img {
  height: 190px;
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  opacity: 1;
  filter: saturate(0.96) contrast(1);
}

.nav-main {
  width: 100%;
  background: white;
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-main {
  min-height: 80px;
}

.nav-container {
  width: 92%;
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
}

.nav-logo img {
  height: 76px;
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.96;
  filter: saturate(0.97) contrast(0.98);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #222 !important;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #00E6E6 !important;
}

.btn-nav-login {
  background: #00E6E6;
  padding: 8px 18px;
  border-radius: 8px;
  color: white !important;
}

.btn-nav-logout {
  background: #ff4f4f;
  padding: 8px 18px;
  border-radius: 8px;
  color: white !important;
}

#nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.nav-burger span {
  width: 28px;
  height: 3px;
  background: #222;
  border-radius: 3px;
}

.site-footer {
  flex-shrink: 0;
  background: #f7f9fa;
  border-top: 1px solid #e5e7eb;
  padding: 25px 0 20px;
  margin-top: 60px;
  width: 100%;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: #00E6E6;
  margin: 0 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 6px;
}

.le-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.le-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 900;
  font-size: 0.98rem;
  color: #233;
}

.le-legend-icon {
  font-weight: 950;
  line-height: 1;
}

.auth__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.auth-logo {
  display: block;
  width: min(72vw, 240px);
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

.auth input.input[type='text'],
.auth input.input[type='email'],
.auth input.input[type='password'] {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.auth__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.auth__trust-note {
  margin: 10px auto 0;
  max-width: 420px;
  color: #4d6669;
  font-size: 0.95rem;
  line-height: 1.55;
}

.auth-field-error {
  color: #b42318;
  margin: 0.5rem 0 0;
  font-weight: 700;
}

@media (max-width: 850px) {
  .nav-container {
    gap: 12px;
  }

  .nav-logo img {
    height: 64px;
  }

  .nav-burger {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 88px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  #nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .main-logo-link img {
    height: 126px;
  }

  .nav-logo img {
    height: 62px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .footer-links a {
    margin: 0;
    font-size: 1.05rem;
  }
}

@media (max-width: 520px) {
  .auth > .card {
    padding-left: 24px;
    padding-right: 24px;
  }

  .auth__actions {
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .nav-container {
    width: 94%;
    gap: 8px;
  }

  .nav-logo img {
    height: 56px;
  }

  .nav-links {
    top: 80px;
  }

  .nav-burger span {
    width: 25px;
  }
}

@media (max-width: 380px) {
  .auth > .card {
    padding-left: 20px;
    padding-right: 20px;
  }
}
