*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Colors */
  --bg-gradient-start: rgb(1, 42, 55);
  --bg-gradient-middle: rgb(74, 99, 104);
  --bg-gradient-end: rgb(76, 108, 117);
  --primary-color: rgb(52, 66, 108);
  --accent-color: rgb(207, 184, 135);
  --text-color: rgb(197, 200, 201);
  --highlight-color: rgb(232, 160, 64);
  --button-bg: rgb(81, 124, 124);
  --button-hover-bg: rgb(72, 82, 109);
  --button-ghost-border: rgb(208, 217, 221);
  --overlay-bg: linear-gradient(to right, rgb(81, 124, 124), rgb(72, 82, 109));
  --modal-bg: rgba(0, 42, 55, 0.4);
  --form-bg: rgb(208, 217, 221);
  --input-bg: rgb(72, 83, 110);
  --input-border: rgb(1, 42, 55);

  /* Spacing */
  --spacing: clamp(1rem, 2vw, 3rem);
  --small-spacing: clamp(0.5rem, 1vw, 1.5rem);

  /* Font Sizes */
  --font-size-base: clamp(0.75em, 1vw + 0.5em, 1em);
  --font-size-small: clamp(0.5em, 0.8vw, 0.9em);
  --font-size-large: clamp(1.5em, 2.5vw, 5em);

  /* Sizes */
  --container-width: clamp(50rem, 50vw, 768px);
  --button-width: clamp(10em, 25vw, 270px);
  --logo-width: clamp(7em, 10vw, 15vw);

  /* Shadows */
  --box-shadow: 0 4px 6px rgba(0, 42, 55, 0.1);
  --border-shadow: 0 1px 3px rgba(1, 42, 55, 0.2);
}

/* 🎨 Global styles */
body {
  background: linear-gradient(45deg, rgb(1, 42, 55), rgb(74, 99, 104) 25%, rgb(65 81 96) 50%, rgb(110 127 178) 75%, rgb(207, 184, 135));
  height: 100vh;
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--text-color);
  overflow: hidden;
}

/* 🎥 Background Video */
#myVideo {
  position: fixed;
  object-fit: cover;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -2;
  filter: grayscale(75%) sepia(20%);
}

/* 🌫️ Overlay on top of video */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(76, 102, 116, 0.5), rgba(81, 124, 124, 0.5));
  z-index: -1;
}

.continent {
  max-width: 1300px;
  min-height: 100vh;
  margin-left: auto;
  margin-right: auto;
}

.all-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 95vh;
  padding: 0 1em;
  position: relative;
  z-index: 1;
  color: white;
}

/* // Hero Section */
.hero {
  background: rgba(124, 77, 255, 0.12);
  border-radius: 18px;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(124, 77, 255, 0.08);
}

.hero .main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #7c4dff;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.25rem;
  color: #333;
  margin: 0;
}

@media (max-width: 600px) {
  .hero {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }

  .hero .main-title {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}



/* ------------- */

/* General Button Styles */
button {
  background-color: var(--button-bg);
  color: var(--text-color);
  border: 1px solid var(--button-ghost-border);
  box-shadow: var(--box-shadow);
  padding: var(--small-spacing);
  border-radius: clamp(1em, 2vw, 20px);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 80ms ease-in;
  max-width: clamp(160px, 270px, 270px);
  min-width: clamp(70px, 210px, 230px);
}



button:hover {
  background-color: var(--button-hover-bg);
  transform: scale(1.05);
  box-shadow: var(--border-shadow);
}

button:active {
  transform: scale(0.985);
  box-shadow: inset 5px 5px 10px -3px rgba(0, 0, 0, 0.7);
}

button:focus {
  outline: none;
}

button.ghost {
  background-color: transparent;
  border-color: var(--button-ghost-border);
}

@media (max-width: 500px) {

  button[type=submit],
  #signIn,
  #signUp {
    letter-spacing: 0;
    min-width: clamp(25px, 88px, 133px);
  }

}







@media (max-width: 400px) {
  .all-content {
    padding: 0.5em;
  }
}

@media (max-width: 300px) {
  .all-content {
    padding: 0.5em 0.5em 11em;
    justify-content: flex-start;
  }
}


/* // Name generator */
.container-generator {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  width: var(--container-width);
  padding: 0 .3em;
}

@media (max-width: 799px) {
  .container-generator {
    display: none;
  }
}

.generate-btn {
  width: clamp(10em, 22em, 50vw);
  padding: clamp(0.8em, 2vw, 1.1em);
  margin: clamp(0.5em, 2vw, 1em) clamp(1.5em, 3vw, 3em);
  opacity: 0.7;
  font-size: clamp(.5em, .9em, 1.1em);
}



/*// Container ITs Form */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  overflow-y: auto;
  width: var(--container-width);
  max-width: 100%;
  height: 75%;
}

.container-generator-in-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 .3em;
  width: 90%;
  align-items: center;
  height: auto;
}

.container-generator-in-form>.generate-butons-in-form {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-generator-in-form>.generate-butons-in-form>.generate-btn {
  all: unset;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  background-color: var(--button-bg);
  font-size: var(--font-size-large);
  width: 70%;
  border-radius: 5px;
  border: 1px solid var(--button-hover-bg);
  box-shadow: 0 4px 6px rgba(0, 42, 55, 0.8);
  row-gap: 0.5em;
  margin-bottom: 1em;
  padding: 0.4em 0.1em;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.1s ease;
  cursor: pointer;
}

.container-generator-in-form>.generate-butons-in-form>.generate-btn:hover {
  background-color: var(--button-hover-bg);
  box-shadow: 0 6px 8px rgba(0, 42, 55, 0.2);
}

.container-generator-in-form>.generate-butons-in-form>.generate-btn:active {
  background-color: var(--highlight-color);
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0, 42, 55, 0.2);
}

@media (min-width: 800px) {
  .container-generator-in-form {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    display: none;
    padding: 0 .3em;
  }
}


















/*! Highlighted Text */
.randomized-highlighted {
  text-align: center;
  margin: 1em;
  letter-spacing: 0.1em;
  color: var(--highlight-color);
  height: clamp(1.2em, 1.5em, 1.5em);
  padding: clamp(0.2em, 0.3em, 3px);
  margin-top: clamp(-0.5em, -0.4em, -0.4em);
}

/* Logo Styles */
.logo {
  width: var(--logo-width);
  cursor: crosshair;
  transition: transform 0.7s;
}

.logo:hover {
  transform: scale(1.6);
}

/* Main Heading Styles */
.main-title {
  margin-bottom: clamp(5%, 10%, 10%);
  font-size: var(--font-size-large);
  color: var(--accent-color);
}


/* Forgot Password Link */
a.forgot-password {
  color: #721313;
  font-size: clamp(1em, 1em, 1em);
  text-decoration: none;
  margin: clamp(0.938em, 15px, 15px) 0;
}

/* Gender Select Input */
#gender-select {
  height: clamp(2.5em, 5vh, 40px);
  font-size: clamp(0.937em, 1em, 15px);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  padding: clamp(0.312em, 5px, 5px);
  background-color: var(--input-bg);
  margin-bottom: clamp(0.375em, 6px, 6px);
}

#gender-select option {
  background-color: var(--primary-color);
  color: var(--text-color);
  font-family: "Arial", sans-serif;
  font-size: clamp(0.875em, 1em, 1em);
  text-align: center;
}

/* Main Form Styles */
form {
  background-color: var(--form-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: clamp(0, 50px, 50px) clamp(0, 50px, 50px);
  height: 100%;
  text-align: center;
  width: 100%;
}

.form-group {
  width: 100%;
}

input,
select {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  padding: clamp(0.75em, 12px, 12px) clamp(0.937em, 15px, 15px);
  margin: clamp(0.5em, 8px, 8px) 0;
  width: 80%;
}

#submitButtonReg {
  margin-top: .7em;
}

/* Form Container */
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

/* Sign-In Container */
.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.container.right-panel-active .sign-in-container {
  transform: translateX(100%);
}

/* Sign-Up Container */
.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

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

@keyframes show {

  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }

  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}

/* Overlay Container */
.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.49, 0.46, 0.32, 0.78);
  z-index: 100;
}

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

/* Overlay */
.overlay {
  background: var(--overlay-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  color: #ffffff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 1s ease-in-out;
}

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

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

/* Overlay Left */
.overlay-left {
  transform: translateX(-20%);
}

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

/* Overlay Right */
.overlay-right {
  right: 0;
  transform: translateX(0);
}

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

/* Overlay Headings */
.overlay-h1 {
  font-size: var(--font-size-large);
}

@media (max-height: 600px) {
  .overlay-h1 {
    font-size: clamp(1em, 100%, 100%);
  }
}

.overlay-p {
  font-size: clamp(0.875em, 0.875em, 0.875em);
  font-weight: 100;
  line-height: clamp(1.25em, 20px, 20px);
  letter-spacing: 0.5px;
  margin: clamp(1.25em, 20px, 30px) 0 clamp(1.875em, 30px, 30px);
}

@media (max-height: 600px) {
  .overlay-p {
    font-size: clamp(0.7em, 0.7em, 0.7em);
    line-height: clamp(0.937em, 15px, 15px);
    letter-spacing: clamp(0.3px, 0.3px, 0.3px);
    margin: clamp(0.625em, 10px, 15px) 0 clamp(0.938em, 15px, 15px);
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg);
  z-index: 1000;
}

.modal-content {
  background-color: var(--input-bg);
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(78%, 78%, 500px);
  max-width: 500px;
  padding: clamp(2.5em, 40px, 40px);
  border-radius: 10px;
}

.modal-content>form {
  background-color: var(--input-bg);
  height: clamp(9.375em, 150px, 150px);
}

/* Centered Input */
.centered-input {
  text-align: center;
  max-width: max-content;
}

@media (max-width: 300px) {
  .centered-input {
    width: clamp(70vw, 70vw, 70vw);
  }
}

/* Button Container */
.button-container {
  margin-top: clamp(0.625em, 10px, 10px);
}

/* Close Modal Button */
#close-modal {
  position: absolute;
  bottom: clamp(0.625em, 10px, 10px);
  right: clamp(0.625em, 10px, 10px);
  color: rgb(237, 126, 62);
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: clamp(0.312em, 5px, 5px);
  transition: transform 0.3s ease;
}

#close-modal:hover {
  transform: scale(1.5);
  color: rgb(230, 102, 33);
}

#close-modal:active {
  transform: scale(1.1);
}