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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f9f9fb;
  color: #1c1c1e;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.auth-page--with-footer {
  min-height: calc(100vh - 80px);
}

.auth-page__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-contact-line {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: #7b7780;
  text-align: center;
}

.auth-contact-line a {
  color: inherit;
  text-decoration: none;
}

.auth-contact-line a:hover,
.auth-contact-line a:focus-visible {
  text-decoration: underline;
}

.form-box {
  background: #ffffff;
  padding: 40px 36px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(28, 28, 30, 0.08);
  width: min(420px, 92vw);
}

.form-box h2 {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

.auth-logo {
  display: block;
  width: clamp(110px, 32vw, 140px);
  max-width: 100%;
  margin: 0 auto 28px;
  height: auto;
}

.auth-card {
  width: min(420px, 92vw);
}

.form-box button,
.form-box .primary-btn {
  padding: 14px;
  background-color: #1c1c1e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.form-box button:hover,
.form-box button:focus-visible,
.form-box .primary-btn:hover,
.form-box .primary-btn:focus-visible {
  background-color: #c7a9a9;
  color: #1c1c1e;
  transform: translateY(-1px);
  outline: none;
}
