@import '../vars/variables.css';

.email-login-container {
  display: grid;
  place-items: center;
  min-height: 100vh;
  font-family: var(--global-font-family);
  background-color: var(--login-form-background-color);
  text-align: center;
}

.logo {
  margin-bottom: 20px;
  width: 309px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0 14px;
  font-size: 16px;
  height: 40px;
  border: none;
  box-sizing: border-box;
  border-radius: 0 2px 2px 0;
}

.form-group input:focus {
  border-color: #007bff;
  outline: none;
}

.custom-dropdown {
  position: relative;
  max-width: 100%;
  width: 100%;
}
.dropdown-button {
  width: 100%;
  padding: 10px 25px 10px 10px;
  position: relative;
  font-size: 16px;
  border: 1px solid var(--dropdown-border-color);
  border-radius: 5px;
  background: var(--dropdown-color);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* arrow */
.dropdown-button::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--dropdown-arrow-color);
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.3s ease;
}
.dropdown-open .dropdown-button::after {
  transform: translateY(-50%) rotate(180deg);
}
.disabled .dropdown-button {
  cursor: not-allowed;
  opacity: 0.6;
}

.dropdown-list-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dropdown-color);
  border: 1px solid var(--dropdown-border-color);
  border-radius: 5px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1000;
  display: none;
}
.dropdown-open .dropdown-list-wrapper {
  display: block;
}

.dropdown-list {
  padding: 1px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--dropdown-border-color) transparent;
  border-top: 1px solid var(--dropdown-border-color);
}
.dropdown-list::-webkit-scrollbar {
  width: 8px;
}
.dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}
.dropdown-list::-webkit-scrollbar-thumb {
  background-color: var(--dropdown-border-color);
  border-radius: 4px;
}
.dropdown-list div {
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--dropdown-separator-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dropdown-list div:hover {
  background: var(--dropdown-hover-color);
}

.main-text {
  max-width: 100%;
  word-wrap: break-word;
}
.sub-text {
  font-size: 13px;
  color: var(--dropdown-sub-text-color);
}

.dropdown-search {
  width: 100%;
  margin: 2px 0;
  font-size: 14px;
  border: none;
  background: var(--dropdown-color);
  box-sizing: border-box;
  color: var(--dropdown-text-color);
  outline: none;
}
.hide-search .dropdown-search {
  display: none;
}
.dropdown-search::-webkit-input-placeholder {
  font-style: italic;
  color: var(--dropdown-sub-text-color);
}
.dropdown-search:-moz-placeholder {
  font-style: italic;
  color: var(--dropdown-sub-text-color);
}
.dropdown-search::-moz-placeholder {
  font-style: italic;
  color: var(--dropdown-sub-text-color);
}
.dropdown-search:-ms-input-placeholder {
  font-style: italic;
  color: var(--dropdown-sub-text-color);
}

.button-container {
  position: relative;
  width: 100%;
}

.submit-button {
  width: 100%;
  margin-top: 35px;
  background-color: var(--button-and-shadow-background-color);
  font-size: 16px;
  border-radius: 100px;
  cursor: pointer;
  line-height: var(--global-line-height);
  transition: background-color 0.2s ease-in-out;
  padding: 14px;
  border: none;
  font-weight: 600;
}

.submit-button:hover {
  background-color: var(--button-and-shadow-hover-background-color);
}

.back-button {
  width: 21px;
  height: 21px;
  margin-bottom: 20px;
  color: #333333;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.loading-spinner {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  width: 35px;
  height: 35px;
  border: 5px solid var(--global-font-color);
  border-top: 5px solid var(--button-and-shadow-background-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
  visibility: hidden;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
