.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-main);
}

.login-centered.auth-body {
  justify-content: center;
}

.auth-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 24px;
  background: var(--bg-white);
  border-radius: 14px;
  box-shadow: 0 4px 10px var(--shadow-1);
  padding: 28px 24px;
}

.auth-logo {
  display: block;
  margin: 0 auto 12px;
  width: 170px;
  max-width: 70%;
  height: auto;
}

.auth-title {
  text-align: center;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 18px;
}

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

.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #C8E6C9;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 14px;
  background: var(--bg-white);
  color: var(--primary-dark);
}

/* komunikaty błędów JS */
.error-msg {
  color: var(--error);
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 10px;
  display: none;
}

.auth-form .btn {
  width: 100%;
  margin-top: 4px;
}

.terms-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.terms-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.terms-text {
  font-size: 15px;
  color: var(--primary);
  text-align: center;
  line-height: 1.4;
}

.back-home {
  display: inline-block;
  margin-top: 14px;
  text-align: center;
}

.login-link {
  text-align: center;
  margin-top: 18px;
  font-size: 15px;
  color: var(--primary);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--primary);
  font-size: 14px;
}

@media (max-width: 768px) {
  .auth-box {
    padding: 22px 18px;
  }

  .auth-logo {
    width: 150px;
    max-width: 65%;
  }

  .auth-title {
    font-size: 20px;
  }
}
