.login-auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.login-secondary-button,
.login-text-button,
.auth-primary-button {
  width: 100%;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}

.login-secondary-button {
  min-height: 48px;
  border: 1px solid #d8dee8;
  background: #fff;
  color: #22324a;
  font-weight: 700;
}

.login-text-button {
  border: 0;
  background: transparent;
  color: #52647d;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 4px;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 47, 0.46);
  backdrop-filter: blur(3px);
}

.auth-modal {
  position: relative;
  width: min(100%, 460px);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(15, 31, 52, 0.24);
  padding: 30px 26px 26px;
  color: #22324a;
}

.auth-modal h2 {
  margin: 0 42px 8px 0;
  font-size: 1.5rem;
  line-height: 1.35;
}

.auth-modal-description {
  margin: 0 0 20px;
  color: #66768c;
  line-height: 1.7;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f8;
  color: #42546b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-flow-form {
  display: grid;
  gap: 15px;
}

.auth-flow-form label {
  display: grid;
  gap: 7px;
  color: #33445b;
  font-weight: 700;
}

.auth-flow-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid #cfd7e2;
  border-radius: 12px;
  background: #fff;
  color: #1d2c40;
  font: inherit;
  padding: 11px 13px;
  outline: none;
}

.auth-flow-form input:focus {
  border-color: #ee8298;
  box-shadow: 0 0 0 3px rgba(238, 130, 152, 0.16);
}

.auth-flow-form small {
  color: #7c899a;
  font-weight: 400;
}

.auth-flow-error {
  min-height: 1.4em;
  color: #b42318;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-primary-button {
  min-height: 50px;
  border: 0;
  background: #f28ba0;
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
}

.auth-primary-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.auth-flow-message {
  margin: 4px 0 18px;
  border-radius: 14px;
  background: #f5f7fa;
  padding: 15px 16px;
  color: #46566c;
  line-height: 1.7;
}

.auth-flow-message.success {
  background: #eef9f1;
  color: #2d6a3c;
}

@media (max-width: 560px) {
  .auth-modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .auth-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 16px 16px;
    padding: 28px 20px 22px;
  }
}
