/* ==============================
   🌈 COLOR VARIABLES & FONTS
============================== */
:root {
  --primary-color: #a02020;
  --secondary-color: #982020;
  --black: #000000;
  --white: #ffffff;
  --gray: #efefef;
  --gray-2: #757575;
  --primary-bright-opacity: rgb(69, 168, 210, 6%);
  --accent-red-opacity: #a0202052;
  --facebook-color: #4267B2;
  --google-color: #DB4437;
  --twitter-color: #1DA1F2;
  --insta-color: #E1306C;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');

/* ==============================
   🔤 BASE STYLES
============================== */
* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100vh;
  overflow-x: hidden;
}

/* ==============================
   🧱 LAYOUT STRUCTURE
============================== */
.container1 {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.container1 .candlestict {
  position: absolute;
  top: 0;
  left: 0;
  background-image: url("../Images/Afters/candlestict.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 110vh;
  z-index: -1;
  opacity: 0.3;
}

.container1 .blue_vector {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-image: url("../Images/Afters/blue_vector.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100vh;
}

.row {
  display: flex;
  flex-wrap: wrap;
  height: 100vh;
  position: relative;
  z-index: 100;
}

.col {
  width: 50%;
}

.align-items-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flex-col {
  flex-direction: column;
}

/* ==============================
   🧾 FORM STYLING
============================== */
.form-wrapper {
  width: 100%;
  max-width: 28rem;
}

.form {
  padding: 1rem;
  color: rgb(226, 226, 226);
  backdrop-filter: blur(4px);
  background-color: var(--primary-bright-opacity);
  border-radius: 1.5rem;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transform: scale(0);
  transition: .5s ease-in-out;
  transition-delay: 1s;
}

.form-heading {
  color: var(--white);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.input-group {
  position: relative;
  width: 100%;
  margin: 1rem 0;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gray-2);
}

.input-group input {
  width: 100%;
  padding: 1rem 3rem;
  font-size: 1rem;
  background-color: var(--primary-bright-opacity);
  border-radius: 20px !important;
  border: 1px solid rgba(0, 0, 0, 0.6);
  color: var(--white);
  outline: none;
}

.input-group input:focus {
  border: 0.125rem solid var(--primary-color);
}

.password-group {
  position: relative;
}

/* 👁️ Eye icon */
.eye-icon {
  position: absolute !important;
  top: 30%;
  left: 90% !important;
  transform: translateY(-50%) !important;
  cursor: pointer;
  color: var(--gray-2);
  width: 6%;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.eye-icon:hover {
  color: var(--white);
}

/* Buttons */
.form button {
  cursor: pointer;
  width: 100%;
  padding: .6rem 0;
  border-radius: .5rem;
  border: none;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1.2rem;
  outline: none;
}

/* Paragraphs */
.form p {
  margin: 1rem 0;
  font-size: .7rem;
}

/* ==============================
   🌐 SOCIAL ICONS
============================== */
.social-list {
  margin: 2rem 0;
  padding: 1rem;
  border-radius: 1.5rem;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transform: scale(0);
  transition: .5s ease-in-out;
  transition-delay: 1.2s;
}

.social-list>div {
  color: var(--white);
  margin: 0 .5rem;
  padding: .7rem;
  cursor: pointer;
  border-radius: .5rem;
  transform: scale(0);
  transition: .5s ease-in-out;
}

.social-list>div:nth-child(1) {
  transition-delay: 1.4s;
}

.social-list>div:nth-child(2) {
  transition-delay: 1.6s;
}

.social-list>div:nth-child(3) {
  transition-delay: 1.8s;
}

.social-list>div:nth-child(4) {
  transition-delay: 2s;
}

.social-list>div>i {
  font-size: 1.5rem;
  transition: .4s ease-in-out;
}

.social-list>div:hover i {
  transform: scale(1.5);
}

/* Social background colors */
.facebook-bg {
  background-color: var(--facebook-color);
}

.google-bg {
  background-color: var(--google-color);
}

.twitter-bg {
  background-color: var(--twitter-color);
}

.insta-bg {
  background-color: var(--insta-color);
}

.pointer {
  cursor: pointer;
}

/* ==============================
   🧠 FORM ANIMATION STATES
============================== */
.container1.sign-in .form.sign-in,
.container1.sign-in .social-list.sign-in,
.container1.sign-in .social-list.sign-in>div,
.container1.sign-up .form.sign-up,
.container1.sign-up .social-list.sign-up,
.container1.sign-up .social-list.sign-up>div {
  transform: scale(1);
}

/* ==============================
   ✨ CONTENT SECTION
============================== */
.content-row {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 6;
  width: 100%;
}

.text {
  margin: 4rem;
  color: var(--white);
}

.text h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 2rem 0;
  transition: 1s ease-in-out;
}

.text p {
  font-weight: 500;
  font-size: 1rem;
  color: #f8f8f8;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
  transition: 1s ease-in-out;
  transition-delay: .2s;
}

.img img {
  width: 30vw;
  transition: 1s ease-in-out;
  transition-delay: .4s;
}

/* Transition directions */
.text.sign-in h2,
.text.sign-in p,
.img.sign-in img {
  transform: translateX(-250%);
}

.text.sign-up h2,
.text.sign-up p,
.img.sign-up img {
  transform: translateX(250%);
}

.container1.sign-in .text.sign-in h2,
.container1.sign-in .text.sign-in p,
.container1.sign-in .img.sign-in img,
.container1.sign-up .text.sign-up h2,
.container1.sign-up .text.sign-up p,
.container1.sign-up .img.sign-up img {
  transform: translateX(0);
}

/* ==============================
   🪄 BACKGROUND EFFECT
============================== */
.container1::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300vw;
  transform: translate(35%, 0);
  backdrop-filter: blur(2px);
  background: var(--primary-bright-opacity);
  transition: 1s ease-in-out;
  z-index: 6;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-bottom-right-radius: max(50vw, 50vh);
  border-top-left-radius: max(50vw, 50vh);
}

.container1.sign-in::before {
  transform: translate(0, 0);
  right: 50%;
}

.container1.sign-up::before {
  transform: translate(100%, 0);
  right: 50%;
}

/* ==============================
   📱 RESPONSIVE DESIGN
============================== */
@media only screen and (max-width: 600px) {
  .container1 {
    overflow-y: scroll;
    margin-top: 17vh;
  }

  .container1::before,
  .container1.sign-in::before,
  .container1.sign-up::before {
    height: 100vh;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0;
    z-index: 0;
    transform: none;
    right: 0;
  }

  .container1.sign-in .col.sign-in,
  .container1.sign-up .col.sign-up {
    transform: translateY(0);
  }

  .content-row {
    align-items: flex-start !important;
  }

  .content-row .col {
    transform: translateY(0);
    background-color: unset;
  }

  .col {
    height: 90vh;
    width: 100%;
    position: absolute;
    padding: 2rem;
    background-color: var(--primary-bright-opacity);
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    transform: translateY(100%);
    transition: 1s ease-in-out;
  }

  .row {
    align-items: flex-end;
    justify-content: flex-end;
  }

  .form {
    padding: 20px !important;
  }

  .form,
  .social-list {
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  .text {
    margin: 0;
  }

  .text p {
    display: none;
  }

  .text h2 {
    display: none;
    /* margin-bottom: 24rem;
    font-size: 2rem; */
  }
}

@media only screen and (max-width: 850px) {
  .text h2 {
    font-size: 1.8rem;
  }

  .text p {
    font-size: 0.9rem;
  }
}

/* ==============================
   ✅ VALIDATION STYLES
============================== */
.is-valid {
  border-color: #22c55e !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  background: rgba(21, 96, 41, 0.3);
  backdrop-filter: blur(10px);
  color: #fff !important;
}

.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  background: rgba(96, 21, 21, 0.3);
  backdrop-filter: blur(10px);
  color: #fff !important;
}