/** Fonts **/
@import url('./custom-font.css');

body {
  font-family: 'Inter', sans-serif;
}

:root {
  --primary: #1f4ef5;
  --white: #fff;
  --error: #f83f04;
  --success: #37a974;
  --warning: #f4b43e;
  --black: #000;
}

h1 {
  font-weight: 700;
  font-size: 36px;
  line-height: 46px;
}

h2 {
  font-weight: 700;
  font-size: 26px;
  line-height: 36px;
}

h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
}

h4 {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

h5 {
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
}

p, span {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
}

label {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: rgb(107, 106, 107);
}

button, button.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  border:none;
  appearance: none;
  font-size: 14px;
  height: 34px;
  border-radius: 10px;
  gap: 10px;
  cursor: pointer;
  background-color: var(--primary);
  color: var(--white);
  padding: 0 14px;
  font-weight: 700;
}

button > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button.secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.faded-button {
  background-color: rgb(230, 235, 253);
  color: var(--primary);
}

.bold, strong {
  font-weight: 700;
}

.italic {
  font-style: italic;
}

.faded {
  color: rgb(107, 106, 107);
}

.action {
  cursor: pointer;
  color: inherit !important;
}

.inline-link {
  color: var(--primary) !important;
  border-bottom: 1px solid var(--primary);
}

.inline-link:hover {
  color: inherit;
}

a.bordered, a.bordered:visited {
  border-top: 1px solid transparent;
  border-bottom: 1px solid currentcolor;
  text-decoration: none;
  cursor: pointer;
  color: inherit !important;
}

.input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgb(246, 246, 246);
  border-radius: 10px;
  color: rgb(8, 7, 8);
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.02em;
  padding: 0px 10px;
  width: 100%;
  box-sizing: border-box;
}

.input-container.input-error {
  border: 2px solid var(--error);
}

.input-container.input-error label {
  color: var(--error);
}

.input-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.input-icon {
  width: 20px;
  height: 20px;
}

input {
  border: none;
  background-color: rgb(246, 246, 246);
  width: 100%;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  height: 48px;
}

input:focus{
  outline: none;
}

.input-error-message {
  color: var(--error);
  display: flex;
}

.input-active, .input-active input {
  background: var(--white);
}

.input-container.input-active {
  border: 2px solid rgb(246, 246, 246);
}

.separator {
  height: 1px;
  background-color: #ECF0FF;
}

.separator-container {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 26px;
  column-gap: 10px;
  margin: 0px 10px;
}

.external-providers {
  display: grid;
  grid-auto-flow: column;
  column-gap: 30px;
  justify-content: center;
}

.logo-container {
  position: fixed;
  top: 0px;
  padding: 15px 10px 10px;
  grid-area: 1 / 1;
  place-self: start;
  z-index: 1;
}

.logo-content {
  height: 36px;
  display: grid;
  align-items: center;
  justify-content: start;
  grid-auto-flow: column;
  column-gap: 10px;
  padding: 0px 10px;
}

.centered-page-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  min-width: 600px;
}

.centered-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(31, 78, 245, 0.04);
  max-width: 620px;
  row-gap: 30px;
  padding: 30px;
  border-radius: 10px;
  min-width: 400px;
}

.no-background {
  background-color: var(--white);
}

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  width: 340px;
}

.snackbar-container {
  opacity: 0;
  position: fixed;
  z-index: 300;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 0.3s;
  animation-timing-function: cubic-bezier(0.17,0.93,0.38,1);
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  pointer-events: none;
}

.snackbar-container.show-snackbar {
  animation-name: snackbar-entry;
  pointer-events: auto;
}

.snackbar-container.hide-snackbar {
  animation-name: snackbar-exit;
  pointer-events: none;
}

@keyframes snackbar-entry {
  from {
    opacity: 0;
    left: 50%;
    transform: translateX(-50%) translateY(30%);
  }

  to {
    opacity: 1;
    left: 50%;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes snackbar-exit {
  from {
    opacity: 1;
    left: 50%;
    transform: translateX(-50%) translateY(0);
  }

  to {
    opacity: 0;
    left: 50%;
    transform: translateX(-50%) translateY(30%);
  }
}

.snackbar-content {
  user-select: none;
  padding: 14px 17px;
  display: grid;
  column-gap: 10px;
  row-gap: 5px;
  min-width: 350px;
  max-width: 450px;
  grid-template-columns: auto 1fr auto;
  transition: transform 0.2s;
  border-radius: 10px;
  grid-template-rows: 24px auto;
  background-color: var(--white);
  color: var(--black);
  transform-origin: center bottom;
  transform: translateY(–0px) scale(1);
}

.snackbar-success {
  box-shadow: 0 7px 14px -9px rgba(0, 0, 0, 0.25), inset 0 0 0 2px var(--success);
}

.snackbar-error {
  box-shadow: 0 7px 14px -9px rgba(0, 0, 0, 0.25), inset 0 0 0 2px var(--error);
}

.snackbar-warning {
  box-shadow: 0 7px 14px -9px rgba(0, 0, 0, 0.25), inset 0 0 0 2px var(--warning);
}

.snackbar-info {
  box-shadow: 0 7px 14px -9px rgba(0, 0, 0, 0.25), inset 0 0 0 2px var(--primary);
}

.snackbar-icon {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
}

.snackbar-icon-error {
  color: var(--error);
}

.snackbar-title {
  grid-column: 2 / 2;
  grid-row: 1 / 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snackbar-description {
  grid-column: 2 / 2;
  color: #666666;
  user-select: text;
}

.snackbar-close {
  display: grid;
  align-items: center;
  justify-content: center;
  grid-column: 3 / 3;
  grid-row: 1 / 1;
  cursor: pointer;
  margin-left: 1rem;
}

.inline-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.password-container {
  position: relative;
}

.password-hints {
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 1px 12px -2px;
  background-color: var(--white);
  font-size: 11px;
  border-radius: 10px;
  color: var(--black);
  padding: 10px;
  display: grid;
  row-gap: 5px;
  text-align: start;
  margin-bottom: 10px;
  position: absolute;
  transform: translateY(calc(-100% - 10px));
  opacity: 0;
  z-index: -1;
  transition: all 0.3s;
}

.password-hints.visible {
  opacity: 1;
  z-index: 10;
}

.password-hints .arrow-down-icon {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
}

.password-hints .arrow-down-icon svg {
  rotate: 180deg;
}

.password-hint-item {
  display: flex;
  column-gap: 5px;
}

.password-hint-item svg {
  opacity: 0.2;
}

.password-hint-item.completed svg {
  opacity: 1;
  color: var(--success);
}

.region-selector {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.region-selector > p {
  color: #8F98CA;
  font-size: 14px;
  font-weight: 500;
}

.region-selector > .button-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}

.region-selector button:hover {
  background-color: #ECF0FF;
  box-shadow: 0px 4px 8px 0px #0000000D;
}

.region-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
  width: 75px;
  height: 45px;
  background-color: white;
  color: black;
  border: 1px solid #ECEEF5;
  box-shadow: 0px 4px 8px 0px #0000000D;
  transition: all 0.3s ease-in-out;
  appearance: none;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.region-button.selected {
  background-color:  #ECF0FF;
  color: #1F4EF5;
  border: 1px solid #1F4EF5;
}

@media screen and (max-width: 768px) {
  .centered-page-container {
    width: 100%;
    min-width: auto;
  }
}
