@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.login-page {
  font-family: "Lato", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #dfdfdf;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.login-page *,
.login-page *::before,
.login-page *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.login-page__card {
  background: white;
  border-radius: 12px;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
  padding: 50px;
  margin: 20px;
  width: 100%;
  max-width: 640px;
}
.login-page__logo {
  margin-bottom: 30px;
}
.login-page__logo img {
  height: 36px;
}
.login-page__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.login-page__subtitle {
  color: #999999;
  margin-bottom: 20px;
}
.login-page__error {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(192, 23, 23, 0.08);
  color: #c01717;
  font-size: 12px;
  padding: 10px 15px;
  border-radius: 4px;
}
.login-page__error-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.login-page__form {
  display: flex;
  flex-direction: column;
}
.login-page__user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.login-page__password-section {
  margin-bottom: 15px;
}
.login-page__password-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.login-page__password-input:focus {
  border-color: #999999;
}
.login-page__password-input::placeholder {
  color: #999999;
}
.login-page__spinner {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}
.login-page__spinner::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid #dfdfdf;
  border-top-color: #999999;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.login-page__submit {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #c01717;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.login-page__submit:hover:not(:disabled) {
  background-color: #961717;
}
.login-page__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dfdfdf;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
}
.login-user-card:hover {
  border-color: #999999;
}
.login-user-card--selected {
  border-color: #333;
  box-shadow: 0 0 0 1px #333;
}
.login-user-card__contact-image {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}
.login-user-card__contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-user-card__contact-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dfdfdf;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  border-radius: 50%;
}
.login-user-card__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}
.login-user-card__name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.login-user-card__email {
  font-size: 12px;
  color: #999999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}