/* Auth shares the application's colors, spacing, form fields and buttons. */
.auth-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

.auth-page .wrapper {
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 460px;
  margin-inline: auto;
  padding: var(--large-padding) var(--mid-padding);
}

.auth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--mid-padding);
  width: 100%;
  padding: var(--large-padding);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--big-border-radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.auth-logo {
  display: block;
  width: clamp(64px, 20vw, 88px);
  height: clamp(64px, 20vw, 88px);
  object-fit: contain;
  border-radius: var(--mid-border-radius);
}

.auth-title {
  color: var(--text-color);
  font-size: var(--huge-font-size);
  font-weight: var(--bold-font);
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.auth-description {
  width: 100%;
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.6;
  text-align: center;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: var(--mid-padding);
  width: 100%;
}

.auth-input-wrapper {
  width: 100%;
}

.auth-input-wrapper[data-auth-field="email"] {
  flex-direction: column;
  gap: 8px;
}

.auth-field-error {
  margin: 0;
  padding: 6px 8px;
  color: var(--error-text);
  background: var(--error-background);
  border-radius: var(--small-border-radius);
  font-size: var(--small-font-size);
  line-height: 1.4;
}

.auth-submit-btn {
  width: 100%;
  min-height: 48px;
  padding: var(--small-padding) var(--mid-padding);
  color: var(--btn-text-color);
  background: var(--btn-color);
  border: 0;
  border-radius: var(--mid-border-radius);
  font-size: var(--mid-font-size);
  font-weight: var(--bold-font);
  line-height: 1.5;
  text-align: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.auth-submit-btn[data-loading="true"] {
  opacity: 0.7;
  cursor: wait;
}

.auth-error {
  width: 100%;
  padding: var(--mid-padding);
  background: var(--error-background);
  border: 1px solid var(--error-border);
  border-radius: var(--mid-border-radius);
}

.auth-error .info__text {
  color: var(--error-text);
  font-size: var(--small-font-size);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.auth-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.auth-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: var(--small-ver-gap);
}

.auth-links a.info__text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-size);
  padding: var(--small-padding);
  border-radius: var(--small-border-radius);
  color: var(--text-color);
  font-size: var(--small-font-size);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.auth-links a:hover {
  background: var(--system-btn-hover-bg2);
}

.auth-particles {
  display: none;
}

@media (max-height: 640px) {
  .auth-page .wrapper {
    justify-content: flex-start;
  }
}

.keyboard-open .auth-page .wrapper {
  justify-content: flex-start;
}
