@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;600&display=swap");

/* CSS Variabless */

:root {
  --body-color: #e8f0f2;
  --container-color: #fff;
  --title-color: #39a2db;
  --text-color: #053742;

  --body-font: "Raleway", sans-serif;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.875rem;

  --font-medium: 500;
  --font-semi-bold: 600;

  /* margins */
  --header-height: 3rem;
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
}

/* base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  padding: 0;
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.container {
  background-color: var(--container-color);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  width: 768px;
  max-width: 100%;
  min-height: 1050px;
  position: relative;
}

/* FORMS */

.form-container form {
  padding: 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 50px;
}

.form-title {
  margin: 20px 0;
}

input,
select {
  background-color: #e8f0f2;
  border-radius: 5px;
  border: none;
  padding: 12px 15px;
  margin: 15px 0;
  width: 100%;
}

button {
  border-radius: 20px;
  border: 1px solid var(--title-color);
  background-color: var(--title-color);
  color: white;
  font-size: 12px;
  padding: 12px 45px;
  margin-bottom: var(--mb-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 100ms ease-in;
}

button:active {
  transform: scale(0.95);
}

button.ghost {
  background-color: transparent;
  border-color: #fff;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.5s ease-in-out;
}

.signup-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.login-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

/* OVERLAY */
.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.5s ease-in-out;
  z-index: 100;
}

.overlay {
  background: var(--title-color);
  color: white;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.5 ease-in-out;
}

.overlay-panel {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  height: 100%;
  width: 50%;
  text-align: center;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

.overlay-panel p {
  padding: 10px 0;
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.overlay-left {
  transform: translateX(-20%);
}

.overlay-title {
  color: white;
}

/* Animation */

/* Move signin to the right */
.right-panel-active .signup-container {
  transform: translateX(100%);
  opacity: 0;
}

/* move overlay to the left */
.right-panel-active .overlay-container {
  transform: translateX(-100%);
}

/* bring signin over sign up */
.right-panel-active .login-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

/* move overlay back to the right */
.right-panel-active .overlay {
  transform: translateX(50%);
}

.right-panel-active .overlay-left {
  transform: translateX(0);
}

.right-panel-active .overlay-right {
  transform: translateX(20%);
}

/* preloader */
.loader-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loader-blob {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.loader-icon {
  height: auto;
}