.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 64px 20px 200px;
  background: var(--color-bg);
}

.form-wrap {
  max-width: 400px;
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.auth-card {
  background: var(--color-bg-second);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 40px 100px;
  border: 1px solid rgba(36, 12, 3, 0.06);
  overflow: visible;
}

.auth-brand {
  display: grid;
  place-items: center;
  margin-bottom: 40px;
}

.elipse {
  width: 80px;
  height: 80px;
  border: 2px solid var(--color-accent);
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.auth-brand img {
  width: 42px;
  height: auto;
}

.auth-title {
  text-align: center;
  font-size: 30px;
  font-family: var(--font-user);
  font-weight: 600;
  color: var(--color-bg-headerfooter);
  margin: 20px 0;
}

.auth-form {
  display: grid;
  align-items: center;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.input {
  position: relative;
}
.input .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.7;
  pointer-events: none;
}
.input input {
  width: 350px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e0e2e9;
  background: var(--color-bg);
  padding: 0 12px 0 38px;
  font: inherit;
  font-size: 12px;
  font-family: var(--font-user);
  font-weight: 500;
  color: var(--color-bg-headerfooter);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}
.form-wrap .input input {
  width: 100%;
  box-sizing: border-box;
}
.input input::placeholder {
  color: #969ab8;
}
.input input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px
    color-mix(in oklab, var(--color-accent) 25%, transparent);
  background: #fff;
}

.btn {
  font-family: var(--font-user);
  width: 100%;
  height: 44px;
  cursor: pointer;
}

.auth-form .btn {
  margin-top: 6px;
}

.auth-links {
  font-size: 15px;
  font-family: var(--font-user);
  font-weight: 600;
  text-align: center;
  margin: 2px 0 6px;
}
.link {
  color: var(--color-bg-headerfooter);
  text-decoration: underline transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.link:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.divider {
  width: 100%;
  height: 1px;
  display: grid;
  background-color: var(--color-accent);
  place-items: center;
  position: relative;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: 100%;
}
.divider span {
  display: inline-block;
  padding: 0 20px;
  color: #969ab8;
  font-size: 14px;
  font-family: var(--font-user);
  font-weight: 500;
  background: var(--color-bg-second);
  position: absolute;
}

.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e0e2e9;
  color: var(--color-bg-headerfooter);
  font-family: var(--font-user);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}
.social-btn img {
  width: 18px;
  height: 18px;
  display: block;
}
.social-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 12, 3, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.social-btn:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--color-accent) 35%, transparent);
  outline-offset: 2px;
}

.switch {
  text-align: center;
  font-size: 15px;
  font-family: var(--font-user);
  font-weight: 500;
  color: var(--color-bg-headerfooter);
  margin-top: 12px;
}

.switch a {
  font-weight: 600;
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #969ab8;
  opacity: 0.85;
  z-index: 3;
  line-height: 0;
}
.toggle-eye:hover {
  opacity: 1;
}
.toggle-eye:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.toggle-eye svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hint {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-user);
  font-size: 14px;
}
.hint.success {
  color: #1c7c54;
}
.hint.error {
  color: #a32020;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn .spinner {
  display: none;
}
.btn.is-loading .spinner {
  display: inline-block;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  vertical-align: -3px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .auth {
    padding: 20px 10px;
  }
  .auth-card {
    padding: 20px 50px;
  }
}
