@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
input {
  font-family: "Poppins", sans-serif;
  color: #333;
}

.container {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%);
  min-height: 100vh;
  overflow: hidden;
}

.forms-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.signin-signup {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 75%;
  width: 50%;
  transition: 1s 0.7s ease-in-out;
  display: grid;
  grid-template-columns: 1fr;
  z-index: 5;
}

form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 3rem 4rem;
  transition: all 0.2s 0.7s;
  overflow: hidden;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  width: 85%;
  max-width: 500px;
  margin: 0 auto;
}

form.sign-up-form {
  opacity: 0;
  z-index: 1;
}

form.sign-in-form {
  z-index: 2;
}

.title {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 10px;
}

.input-field {
  max-width: 380px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  margin: 10px 0;
  height: 55px;
  border-radius: 55px;
  display: grid;
  grid-template-columns: 15% 85%;
  padding: 0 0.4rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.input-field:focus-within {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(89, 149, 253, 0.2);
  border-color: #5995fd;
}

.input-field label {
  position: absolute;
  left: 15%; 
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  transition: all 0.3s ease;
  pointer-events: none; 
  font-weight: 500;
  font-size: 1rem;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
  top: 10px;
  font-size: 0.7rem;
  color: #5995fd;
  font-weight: 600;
}

.input-field i {
  text-align: center;
  line-height: 55px;
  color: #999;
  transition: 0.5s;
  font-size: 1.1rem;
}

.input-field input:focus ~ i {
  color: #5995fd;
}

.input-field input {
  background: none;
  outline: none;
  border: none;
  line-height: 1;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  padding-top: 15px;
  width: 100%;
}

.input-field input::placeholder {
  color: transparent;
}

.social-text {
  padding: 0.7rem 0;
  font-size: 1rem;
  color: #555;
  font-weight: 500;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icon {
  height: 46px;
  width: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #444;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
  color: #fff;
  background-color: #5995fd;
  border-color: #5995fd;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(89, 149, 253, 0.3);
}

.btn {
  width: 150px;
  background-color: #5995fd;
  border: none;
  outline: none;
  height: 49px;
  border-radius: 49px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  margin: 15px 0;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 6px 15px rgba(89, 149, 253, 0.3);
}

.btn:hover {
  background-color: #4d84e2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(89, 149, 253, 0.4);
}

.panels-container {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.container:before {
  content: "";
  position: absolute;
  height: 2000px;
  width: 2000px;
  top: -10%;
  right: 48%;
  transform: translateY(-50%);
  background-image: linear-gradient(-45deg, #4481eb 0%, #04befe 100%);
  transition: 1.8s ease-in-out;
  border-radius: 50%;
  z-index: 6;
  box-shadow: 0 10px 50px rgba(4, 190, 254, 0.3);
}

.image {
  width: 100%;
  transition: transform 1.1s ease-in-out;
  transition-delay: 0.4s;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-around;
  text-align: center;
  z-index: 6;
}

.left-panel {
  pointer-events: all;
  padding: 3rem 17% 2rem 12%;
}

.right-panel {
  pointer-events: none;
  padding: 3rem 12% 2rem 17%;
}

.panel .content {
  color: #fff;
  transition: transform 0.9s ease-in-out;
  transition-delay: 0.6s;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.panel h3 {
  font-weight: 600;
  line-height: 1;
  font-size: 1.6rem;
}

.panel p {
  font-size: 0.95rem;
  padding: 0.7rem 0;
  font-weight: 400;
}

.btn.transparent {
  margin: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  width: 130px;
  height: 41px;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: none;
}

.btn.transparent:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.right-panel .image,
.right-panel .content {
  transform: translateX(800px);
}

.container.sign-up-mode:before {
  transform: translate(100%, -50%);
  right: 52%;
}

.container.sign-up-mode .left-panel .image,
.container.sign-up-mode .left-panel .content {
  transform: translateX(-800px);
}

.container.sign-up-mode .signin-signup {
  left: 25%;
}

.container.sign-up-mode form.sign-up-form {
  opacity: 1;
  z-index: 2;
}

.container.sign-up-mode form.sign-in-form {
  opacity: 0;
  z-index: 1;
}

.container.sign-up-mode .right-panel .image,
.container.sign-up-mode .right-panel .content {
  transform: translateX(0%);
}

.container.sign-up-mode .left-panel {
  pointer-events: none;
}

.container.sign-up-mode .right-panel {
  pointer-events: all;
}

@media (max-width: 870px) {
  .container {
    min-height: 800px;
    height: 100vh;
  }
  .signin-signup {
    width: 100%;
    top: 95%;
    transform: translate(-50%, -100%);
    transition: 1s 0.8s ease-in-out;
  }

  .signin-signup,
  .container.sign-up-mode .signin-signup {
    left: 50%;
  }

  .panels-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr 1fr;
  }

  .panel {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 2.5rem 8%;
    grid-column: 1 / 2;
  }

  .right-panel {
    grid-row: 3 / 4;
  }

  .left-panel {
    grid-row: 1 / 2;
  }

  .image {
    width: 200px;
    transition: transform 0.9s ease-in-out;
    transition-delay: 0.6s;
  }

  .panel .content {
    padding-right: 15%;
    transition: transform 0.9s ease-in-out;
    transition-delay: 0.8s;
  }

  .panel h3 {
    font-size: 1.3rem;
  }

  .panel p {
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }

  .btn.transparent {
    width: 110px;
    height: 35px;
    font-size: 0.75rem;
  }

  .container:before {
    width: 1500px;
    height: 1500px;
    transform: translateX(-50%);
    left: 30%;
    bottom: 68%;
    right: initial;
    top: initial;
    transition: 2s ease-in-out;
  }

  .container.sign-up-mode:before {
    transform: translate(-50%, 100%);
    bottom: 32%;
    right: initial;
  }

  .container.sign-up-mode .left-panel .image,
  .container.sign-up-mode .left-panel .content {
    transform: translateY(-300px);
  }

  .container.sign-up-mode .right-panel .image,
  .container.sign-up-mode .right-panel .content {
    transform: translateY(0px);
  }

  .right-panel .image,
  .right-panel .content {
    transform: translateY(300px);
  }

  .container.sign-up-mode .signin-signup {
    top: 5%;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 570px) {
  form {
    padding: 2.5rem 1.5rem;
    width: 90%;
    border-radius: 20px;
  }

  .image {
    display: none;
  }
  
  .panel .content {
    padding: 0.5rem 1rem;
  }
  
  .container {
    padding: 1.5rem;
  }

  .container:before {
    bottom: 72%;
    left: 50%;
  }

  .container.sign-up-mode:before {
    bottom: 28%;
    left: 50%;
  }
}

nav .menu {
  width: 100%;
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-sizing: border-box;
  z-index: 100;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

nav .menu a {
  text-decoration: none;
  user-select: none;
  color: inherit;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 10px 15px;
}

nav .menu .website_name {
  color: #4481eb;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  padding: 4px 8px;
  transition: all 0.4s ease;
  cursor: pointer;
  margin-left: 0;
  user-select: none;
}

nav .menu .website_name:hover {
  color: #04befe;
}

nav .menu .menu_links {
  transition: all 0.4s ease;
  margin-left: auto;
}

@media screen and (max-width: 799px) {
  nav .menu .menu_links {
    display: none;
  }
}

nav .menu .menu_links .link {
  color: #333;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 40px;
  letter-spacing: 1.5px;
  position: relative;
  transition: all 0.3s 0.2s ease;
}

nav .menu .menu_links .link:last-child {
  margin-right: 0;
}

nav .menu .menu_links .link:before {
  content: '';
  position: absolute;
  width: 0px;
  height: 3px;
  background: linear-gradient(90deg, #4481eb 0%, #04befe 100%);
  bottom: -8px;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.82, 0.02, 0.13, 1.26);
  left: 50%;
  transform: translateX(-50%);
}

nav .menu .menu_links .link:hover {
  color: #4481eb;
}

nav .menu .menu_links .link:hover:before {
  width: 100%;
}

nav .menu .menu_icon {
  width: 40px;
  height: 40px;
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

@media screen and (max-width: 799px) {
  nav .menu .menu_icon {
    display: flex;
  }
}

nav .menu .menu_icon .icon {
  width: 24px;
  height: 2px;
  background: #333;
  position: absolute;
  border-radius: 2px;
}

nav .menu .menu_icon .icon:before, nav .menu .menu_icon .icon:after {
  content: '';
  width: 100%;
  height: 100%;
  background: inherit;
  position: absolute;
  transition: all 0.3s cubic-bezier(0.49, 0.04, 0, 1.55);
  border-radius: 2px;
}

nav .menu .menu_icon .icon:before {
  transform: translateY(-8px);
}

nav .menu .menu_icon .icon:after {
  transform: translateY(8px);
}

nav .menu .menu_icon:hover .icon {
  background: #4481eb;
}

nav .menu .menu_icon:hover .icon:before {
  transform: translateY(-10px);
}

nav .menu .menu_icon:hover .icon:after {
  transform: translateY(10px);
}

@media screen and (max-width: 799px) {
  nav .menu .menu_links {
    z-index: 100;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  nav .menu .menu_links.active {
    display: flex;
  }
  
  nav .menu .menu_links .link {
    margin: 15px 0;
    display: block;
  }
}

.notification-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: calc(100% - 40px);
}

.notification {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 1);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: #333;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.notification.success {
  border-left: 4px solid #00c853;
}

.notification.error {
  border-left: 4px solid #ff3d00;
}

.notification.info {
  border-left: 4px solid #2979ff;
}

.notification .icon {
  margin-right: 15px;
  font-size: 22px;
}

.notification.success .icon {
  color: #00c853;
}

.notification.error .icon {
  color: #ff3d00;
}

.notification.info .icon {
  color: #2979ff;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.policy-container {
  display: flex;
  align-items: center;
  margin: 15px 0;
  font-size: 0.85rem;
  color: #555;
  width: 100%;
  max-width: 380px;
  justify-content: center;
}

.policy-container input {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #5995fd;
  transform: scale(1.1);
}

.policy-link {
  color: #4481eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.policy-link:hover {
  text-decoration: underline;
  color: #04befe;
}