.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px 48px;
  background: radial-gradient(circle at top, rgba(17, 122, 56, 0.08) 0%, rgba(255, 255, 255, 0.96) 60%),
    linear-gradient(180deg, #f5f7f5 0%, #ffffff 100%);
}

.auth-header {
  background: #2f3337;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  /* position: sticky; */
  top: 0;
  z-index: 20;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.auth-logo {
  height: 56px;
  width: auto;
}

.auth-brand-title {
  font-weight: 700;
  letter-spacing: 0.4px;
}

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

.auth-link {
  color: #e6ecef;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover,
.auth-link:focus {
  color: #ffffff;
}

.auth-page .auth-logo {
  align-self: flex-start;
  height: 72px;
  width: auto;
}

.auth-shell {
  width: 100%;
}

.auth-shell .container {
  max-width: 720px;
}

.auth-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 26px 30px;
  border: 1px solid rgba(12, 48, 16, 0.12);
  box-shadow: 0 22px 45px rgba(16, 36, 16, 0.12);
}

.auth-card-wide {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.auth-title {
  color: #0f3a1a;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.auth-sub {
  color: #3f4a3f;
  margin-bottom: 18px;
}

.auth-title,
.auth-sub {
  text-align: center;
}

.auth-input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(30, 70, 40, 0.2);
  box-shadow: none;
}

.auth-password-field {
  position: relative;
}

.auth-password-field .auth-input {
  padding-right: 78px;
}

.auth-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #0b7a36;
  font-weight: 600;
  padding: 4px 6px;
  cursor: pointer;
}

.auth-toggle:focus {
  outline: 2px solid rgba(11, 122, 54, 0.25);
  outline-offset: 2px;
}

.auth-input:focus {
  border-color: rgba(11, 122, 54, 0.6);
  box-shadow: 0 0 0 3px rgba(11, 122, 54, 0.12);
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.auth-actions .btn {
  min-width: 140px;
  padding: 10px 18px;
  font-weight: 600;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.auth-links a {
  text-decoration: none;
}

.auth-links a:hover,
.auth-links a:focus {
  text-decoration: underline;
}

.auth-register {
  text-align: right;
  margin-top: 12px;
}

.auth-register a {
  font-weight: 600;
}

#login #register-link {
  margin-top: 12px;
}

@media (max-width: 768px) {
  .auth-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .auth-page {
    padding-top: 24px;
  }

  .auth-page .auth-logo {
    height: 64px;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions .btn {
    width: 100%;
  }

  .auth-links {
    align-items: center;
  }

}
