*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: hsl(220, 30%, 97%);
  color: hsl(230, 80%, 12%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: hsl(45, 100%, 50%);
  color: hsl(230, 80%, 12%);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: hsl(230, 74%, 12%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsla(45, 100%, 50%, 0.12);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  gap: 1rem;
}

.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: hsl(45, 100%, 50%);
}

.btn-donate-nav {
  display: inline-block;
  background: linear-gradient(135deg, hsl(45, 100%, 50%), hsl(38, 90%, 52%));
  color: hsl(230, 80%, 8%) !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  margin-left: 0.5rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-donate-nav:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-login-nav {
  display: inline-block;
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  border: 1px solid hsla(0, 0%, 100%, 0.25);
  margin-left: 0.25rem;
  transition: border-color 0.2s, color 0.2s;
}

.btn-login-nav:hover {
  border-color: hsla(0, 0%, 100%, 0.6);
  color: white;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger { position: relative; }
.hamburger::before,
.hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.menu-toggle.open .hamburger { background: transparent; }
.menu-toggle.open .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.open .hamburger::after  { transform: rotate(-45deg); top: 0; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: hsl(230, 80%, 8%);
  padding: 1rem 0;
  border-top: 1px solid hsla(45, 100%, 50%, 0.1);
}

.mobile-menu.open { display: flex; }

.mobile-link {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
  transition: color 0.2s;
}

.mobile-link:hover,
.mobile-link.active { color: hsl(45, 100%, 50%); }

.mobile-actions {
  display: flex;
  gap: 1rem;
  padding: 1rem 2rem 0.5rem;
}

.btn-donate-nav.mobile,
.btn-login-nav.mobile { margin: 0; }

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 1rem 4rem;
  background: hsl(220, 30%, 97%);
}

.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 2.75rem 2.5rem 2.25rem;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 4px 32px -4px hsla(230, 80%, 12%, 0.1);
}

.lock-icon {
  width: 60px;
  height: 60px;
  background: hsl(220, 40%, 93%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.login-card h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: hsl(230, 80%, 12%);
  margin-bottom: 0.4rem;
}

.subtitle {
  font-size: 0.875rem;
  color: hsl(220, 15%, 50%);
  margin-bottom: 2rem;
}

.form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: hsl(230, 40%, 25%);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid hsl(220, 20%, 85%);
  border-radius: 8px;
  font-size: 0.875rem;
  color: hsl(230, 80%, 12%);
  background: hsl(220, 30%, 98%);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus {
  border-color: hsl(230, 80%, 35%);
  box-shadow: 0 0 0 3px hsla(230, 80%, 35%, 0.1);
  background: #fff;
}

.form-group input.input-error {
  border-color: hsl(0, 75%, 55%);
}

.error-msg {
  display: block;
  font-size: 0.75rem;
  color: hsl(0, 75%, 55%);
  margin-top: 4px;
  min-height: 16px;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(220, 15%, 65%);
  padding: 0;
  display: flex;
  align-items: center;
}

.toggle-password:hover {
  color: hsl(230, 80%, 30%);
}

.btn-submit {
  width: 100%;
  padding: 0.82rem;
  background: hsl(230, 80%, 18%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.1s;
  font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
  background: hsl(230, 80%, 13%);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.link-esqueci {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: hsl(230, 70%, 40%);
  font-weight: 500;
  transition: color 0.2s;
}

.link-esqueci:hover {
  color: hsl(45, 100%, 42%);
  text-decoration: underline;
}

.cadastro-text {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: hsl(220, 15%, 50%);
}

.cadastro-text a {
  color: hsl(230, 70%, 40%);
  font-weight: 600;
  text-decoration: underline;
}

.cadastro-text a:hover {
  color: hsl(45, 100%, 42%);
}

.footer {
  background: hsl(230, 80%, 8%);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
  filter: brightness(1.05);
}

.footer-desc {
  color: hsla(0, 0%, 100%, 0.4);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: hsla(0, 0%, 100%, 0.45);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: hsl(45, 100%, 50%); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact li {
  color: hsla(0, 0%, 100%, 0.45);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid hsla(0, 0%, 100%, 0.08);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom p {
  color: hsla(0, 0%, 100%, 0.3);
  font-size: 0.78rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: hsla(0, 0%, 100%, 0.3);
  font-size: 0.78rem;
  transition: color 0.2s;
}

.footer-legal a:hover { color: hsl(45, 100%, 50%); }
