* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}
:root {
  /* Colors */
  --white: #ffffff;

  --red-1: #fdf2f4;
  --red-2: #ffe9ec;
  --red-3: #ffc4cb;
  --red-4: #ed3833;
  --red-5: #ff0828;
  --red-6: #aba3a4;
  --red-7: #fbe6ea;

  --gray-1: #f9f9f9;
  --gray-2: #ececec;
  --gray-3: #eaeaea;
  --gray-4: #d5d5d5;
  --gray-5: #a4a4a4;
  --gray-6: #807f7f;
  --gray-7: #818080;

  --yellow-1: #fffbf3;
  --yellow-2: #fcf8f0;
  --yellow-3: #fef7e8;
  --yellow-4: #ffb016;

  --green-1: #f3fdfa;
  --green-2: #e8fbf5;
  --green-3: #caefe4;
  --green-4: #00dc73;
  --green-5: #15d29a0d;

  --blue-1: #f2f8fe;
  --blue-2: #0d74f6;

  --purple-1: #f8f6fc;
  --purple-2: #804fbf;

  --black: #000000;
  --gray-text: rgba(45, 44, 44, 1);

  /* Font Sizes */
  --font-size-1: 10px;
  --font-size-2: 11px;
  --font-size-3: 13px;
  --font-size-4: 15px;
  --font-size-5: 16px;
  --font-size-6: 17px;
  --font-size-7: 20px;
  --font-size-8: 21px;
  --font-size-9: 23px;
  --font-size-10: 27px;

  --font-family-primary: "Manrope", sans-serif;
}

/* ===============================
   GENERIC STYLES
   =============================== */
html {
  height: max-content;
  min-height: 100vh;
  width: 100vw;
  background: var(--white);
  font-size: var(--font-size-3);
  color: var(--black);
  overflow-x: hidden;
  font-family: var(--font-family-primary);
}
body {
  font-family: var(--font-family-primary);
  /* font-optical-sizing: auto; */
  color: var(--gray-7);
  font-weight: 500;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: fit-content;
  margin: 7rem 0 6rem;
}
a {
  text-decoration: none;
  font-family: inherit;
  color: inherit;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
button {
  border: none;
  outline: none;
  background-color: transparent;
  cursor: pointer;
}
.primary-button {
  font-size: var(--font-size-3);
  color: var(--white);
  border: 3px solid;
  background-image: linear-gradient(
    90deg,
    #ff6315 0%,
    #ff411c 25%,
    #ff1d23 50%,
    #ff0728 75%,
    #ff002a 100%
  );
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 40px;
  gap: 10px;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.5s ease;
}
.primary-button:hover {
  background-image: linear-gradient(
    90deg,
    #fc5c0c 0%,
    #f73610 25%,
    #fe151d 50%,
    #f40223 75%,
    #f5012a 100%
  );
}
.floating-controls {
  text-align: left;
  position: relative;
  width: 100%;
}
.floating-controls.number,
.floating-controls.dropdown {
  display: grid;
  grid-template-rows: 52px auto;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: fit-content;
}
.floating-controls input[type="text"],
.floating-controls input[type="email"],
.floating-controls input[type="tel"],
.floating-controls button,
.floating-controls textarea {
  padding: 1.5rem 0.9rem;
  border: 1px solid var(--gray-2);
  width: 100%;
  margin-bottom: 18px;
  color: var(--black);
  font-size: var(--font-size-2);
  font-weight: 300;
  background-color: transparent;
  border-radius: 5px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  height: 4rem;
}
.floating-controls input[type="text"]:focus,
.floating-controls input[type="email"]:focus,
.floating-controls input[type="tel"],
.floating-controls textarea,
.floating-controls button {
  outline: none;
  /* border-color: var(--border-focus); */
}
.floating-controls label {
  position: absolute;
  left: 12px;
  top: 1.35rem;
  background-color: var(--white);
  pointer-events: none;
  transition: 0.3s;
  padding: 0 4px;
  background-color: transparent;
  font-size: var(--font-size-2);
}
.floating-controls.dropdown label,
.floating-controls.number label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
  width: fit-content;
}
.floating-controls.number input,
.floating-controls.dropdown > button {
  grid-row: 1 / span 1;
  grid-column: 1 / span 2;
  margin: 0;
}
.floating-controls.number > img,
.floating-controls.dropdown > img {
  grid-row: 1 / span 1;
  grid-column: 2 / span 1;
  margin-right: 15px !important;
  cursor: pointer;
}
.floating-controls.number > img {
  display: none;
}
.floating-controls.number .hint,
.floating-controls.dropdown .hint {
  grid-row: 2 / span 1;
  grid-column: 1 / span 2;
  margin-top: 10px;
  margin-bottom: 25px;
}
.floating-controls input:focus + label,
.floating-controls input:not(:placeholder-shown) + label,
.floating-controls textarea:focus + label,
.floating-controls textarea:not(:placeholder-shown) + label,
.floating-controls.dropdown.selected button + label {
  top: -6px;
  font-size: var(--font-size-1);
  background-color: var(--white);
}
.floating-controls input:not(:placeholder-shown) ~ img.control-element {
  display: block;
}
.floating-controls.number input:focus + label img,
.floating-controls.number input:not(:placeholder-shown) + label img {
  display: block;
}
.floating-controls input:-internal-autofill-selected {
  background-color: transparent !important;
}
.checkbox {
  gap: 10px;
  font-size: var(--font-size-2);
  align-items: center;
  color: var(--gray-4);
  flex-direction: row-reverse;
  display: flex;
  position: relative;
  cursor: pointer;
}
.checkbox > input {
  opacity: 0;
  position: absolute;
}
.checkbox > input ~ span {
  color: var(--gray-4);
}
.checkbox > input:checked ~ span {
  color: var(--black);
}
.checkbox > svg {
  scale: 0.7;
  position: relative;
  z-index: 1;
}
.checkbox > input + svg path {
  fill: var(--gray-5);
}
.checkbox > input:checked + svg path {
  fill: var(--blue-2);
}
.hide-scrollbar {
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.static-dropdown,
.select-dropdown {
  position: relative;
}
.static-dropdown > button,
.select-dropdown > button {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--font-size-3);
}
.static-dropdown .dropdown-heading,
.select-dropdown .dropdown-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  font-size: var(--font-size-1);
  padding: 15px 20px;
  border-bottom: 1px solid var(--gray-2);
}
.static-dropdown .dropdown,
.select-dropdown .dropdown {
  position: absolute;
  flex-direction: column;
  background-color: #fcfcfc;
  border: 1px solid var(--gray-2);
  width: 250px;
  top: 30px;
  right: 0;
  border-radius: 20px;
  box-shadow: 0px 4px 20px 0px #0000000d;
  display: none;
  transition: all 0.3s ease;
  z-index: 10;
  width: 250px;
}
.static-dropdown.open .dropdown,
.select-dropdown.open .dropdown {
  display: flex;
}
.static-dropdown ul,
.select-dropdown ul {
  padding: 10px 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.static-dropdown ul li,
.select-dropdown ul li {
  padding: 10px;
  justify-content: space-between;
  font-size: var(--font-size-2);
  transition: all 0.2s ease-out;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.static-dropdown ul li a svg,
.select-dropdown ul li a svg {
  color: var(--gray-6);
  transition: color 0.2s ease-out;
}
.static-dropdown ul li:hover,
.select-dropdown ul li:hover {
  background-color: var(--yellow-2);
  color: var(--yellow-4);
  padding-right: 0.3rem;
  border-radius: 5px;
}
.static-dropdown ul li:hover svg,
.select-dropdown ul li:hover svg {
  color: var(--black);
}
.swap-button {
  background-color: var(--red-1);
  border-radius: 40px;
  align-items: center;
  position: relative;
  height: 64px;
}
.swap-button::before,
.swap-button::after {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  height: 90%;
  padding: 0 17px;
  border-radius: 40px;
  border: 3px solid var(--red-1);
  cursor: pointer;
}
.swap-button::before {
  transform: translateX(0);
  color: var(--white);
  background-image: linear-gradient(
    90deg,
    #ff6315 0%,
    #ff411c 25%,
    #ff1d23 50%,
    #ff0728 75%,
    #ff002a 100%
  );
  border-radius: 40px;
  gap: 10px;
  transition: background-image 0.3s ease;
  z-index: 1;
}
.swap-button::after {
  transform: translateX(110%);
  background-color: var(--red-7);
  color: var(--gray-7);
}
.swap-button.right-clicked::before {
  animation: bounce-to-right 0.6s ease-out;
  transform: translateX(110%);
}
.swap-button.right-clicked::after {
  animation: bounce-to-left 0.6s ease-out;
  transform: translateX(0);
}
.swap-button.left-clicked::before {
  animation: bounce-to-left 0.6s ease-out;
  transform: translateX(0);
}
.swap-button.left-clicked::after {
  animation: bounce-to-right 0.6s ease-out;
  transform: translateX(110%);
}
.glass{
  width: fit-content;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

/* ===============================
   WELCOME PAGE STYLES
   =============================== */
.heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 80px;
  color: var(--black);
}
.heading p {
  font-size: var(--font-size-7);
}
.heading h1 {
  font-size: var(--font-size-10);
}
.container {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-3);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  align-items: center;
  gap: 1.8rem;
  background-color: var(--white);
}
main .logo img {
  display: none;
}
.container > span {
  font-size: var(--font-size-5);
}
.container > div {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.container > div a {
  display: flex;
  align-items: center;
  background-color: var(--red-1);
  border-radius: 50px;
  padding: 1.3rem 3rem 1.3rem 1.7rem;
  gap: 1rem;
  transition: background-color 0.3s ease;
}
.container > div a:hover {
  background-color: var(--red-2);
}
.container p:first-child,
.login-status p:first-child {
  font-size: var(--font-size-5);
  margin-bottom: 2px;
  color: var(--black);
}
.container p:nth-child(2),
.login-status p:nth-child(2) {
  color: var(--red-6);
}
.container > div a img {
  background-color: var(--red-4);
  border-radius: 25px;
  padding: 1rem;
  width: 58px;
  height: 55px;
}
footer p {
  justify-self: center;
  padding: 60px 0 80px;
  margin-top: auto;
  position: relative;
  display: flex;
  gap: 1rem;
}
footer a:hover {
  text-decoration: underline;
}

/* ===============================
   SIGN UP PAGE STYLES
   =============================== */
.signup main {
  margin-top: 11rem;
}
.signup .heading {
  margin-bottom: 40px;
  width: 250px;
}
.signup .heading a,
.login-status {
  display: flex;
  flex-direction: row;
  background-color: #fcf6f6;
}
.signup-container {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  align-items: center;
  gap: 1.8rem;
  background-color: var(--white);
  width: 100%;
  max-width: 400px;
}
.signup-container > a {
  display: flex;
  border-radius: 45px;
  padding: 1.5rem;
  align-items: center;
  gap: 1rem;
  background-color: var(--white);
  border: 1px solid var(--gray-3);
  width: 100%;
  justify-content: center;
  color: black;
}
.signup-container > a:hover {
  background-color: #eaeaea2b;
}
.signup-container p {
  border-radius: 40px;
  display: flex;
  flex-direction: row;
  width: fit-content;
}
.signup-container > p {
  border-radius: 40px;
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.signup-container > p a {
  align-items: center;
  width: max-content;
  justify-content: center;
  color: var(--blue-2);
}
.signup-container > p a:hover {
  text-decoration: underline;
}

/* ===============================
   LOGIN PAGE STYLES
   =============================== */
.login main {
  margin-top: 9rem;
}
.signup .heading,
.login .heading {
  margin-bottom: 30px;
  width: 250px;
}
.login-status {
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1.2rem;
  width: 100%;
  border-radius: 40px;
}
.login-status img {
  width: 50px;
  height: auto;
}
.login-status div {
  flex: 1;
}
.login-status p:nth-child(2) {
  color: var(--red-6);
  font-size: var(--font-size-2);
}

.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}
.loader-container.hide {
  display: none;
}

.loader-container .loader {
  width: 80px;
  height: 80px;
  border: 5px solid var(--red-1);
  border-top: 5px solid var(--red-4);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
  display: block;
}

.loader-container .loader::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 5px solid transparent;
  border-top-color: var(--red-4);
  opacity: 0.3;
  animation: spin 2s linear infinite;
}

body.dashboard main {
  display: none;
}
body.dashboard main.show{
  display: flex;
}

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

@media (max-width: 480px) {
  :root {
    /* Font Sizes */
    --font-size-1: 9px;
    --font-size-2: 10px;
    --font-size-3: 12px;
    --font-size-4: 14px;
    --font-size-5: 15px;
    --font-size-6: 16px;
    --font-size-7: 19px;
    --font-size-8: 20px;
    --font-size-9: 24px;
    --font-size-10: 29px;
  }
}
@media (max-width: 490px) {
  .welcome-page > main > .container > div > a > img {
    width: 50px;
    height: 55px;
    border-radius: 20px;
  }
  .welcome-page main .heading p {
    display: none;
  }
  .welcome-page main .heading h1 {
    font-size: var(--font-size-9);
    font-weight: 500;
  }
  main .logo img {
    display: block;
    margin-bottom: 40px;
  }
  .signup-container {
    width: 90vw;
    max-width: 90vw;
    padding-inline: 0;
  }
  .signup-container > a {
    width: 100%;
    margin-inline: auto;
  }
  .login .signup-container > span {
    display: none;
  }
  .login .heading {
    margin-bottom: 0;
    width: 90vw;
  }
  .login .login-status {
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 1.2rem;
    width: 100%;
    border-radius: 40px;
  }
}
