@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('../../res/fonts/ttinterphases.css');
@import url('../../res/fonts/Inter.css');




* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


@keyframes fadeOut {
  0% {
    opacity: 1;
   
  }
  100% {
    opacity: 0;
   
  }
}


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
}


body {
  font-family: "Poppins", sans-serif;
  height: 100vh;
  background:
    
    url('../../res/placeholderbg.jpg') center center / cover no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
  overflow: hidden;
  
}

/* Back Button */
.back-btn {
  position: absolute;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.8px;

  text-decoration: none;
  color: #a5a5a5;
  font-weight: 300;
  font-size: 0.95rem;
  display: flex;
  top: 0;
  right: 0;
  padding-right: 40px;
  padding-top: 30px;
  gap: 6px;
  z-index: 10;
  transition: all 0.3s ease-in-out,
               transform 0.3s ease;
}

.back-btn i {
  font-size: 0.9rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  
  -webkit-text-fill-color: #F1F1F1;
  -webkit-box-shadow: 0 0 0px 1000px #410606d8 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.back-btn:hover {
  transform: translateX(-5px);
  color: #ffff;
  transition: all 0.3s ease-in-out,
               transform 0.3s ease;
  
  }




/* Container */

.container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Sign In Box Layout */
.signin-box {
  display: flex;
  margin-top: 50px;
  width: 800px;
  height: 500px;
  background: rgba(97, 97, 97, 0.123);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 25px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(0, 0, 0, 0.9);

  
  box-shadow: -24px 19px 34.2px 0 rgba(184, 183, 183, 0.25) inset;
 
  position: relative;
}

.signin-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* LEFT PANEL */
.left-panel {
  flex: 0.9;
  position: relative;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(212, 212, 212, 0.2);
  border-right: none;
  border-radius: 15px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 19px 3px 15.6px -1px rgba(0, 0, 0, 0.76);
  z-index: 2;
  
  /* Animation properties */
  animation: slideInFromRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  transform: translateX(30px);

}

.left-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  pointer-events: none;
  border-radius: 15px;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideBackInOut {
  0%{ transform: translateX(-5px); }
  50%{ transform: translateX(0px); }
  100%{ transform: translateX(-5px); }

}

.left-panel .rah-logo {
  position: absolute;
  top: 90px;
  left: 52%;
  transform: translateX(-50%);
  width: 230px;
  
  height: auto;
}

.left-panel h3 {
  position: absolute;
  top: 200px;
  left: 30%;
  transform: translateX(-11%);
  margin-top: 5px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.7px;
}

.left-panel .bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.left-panel .rah-logo,
.left-panel h3 {
  position: absolute;
  z-index: 3;
}

.left-panel .bg-img {
  z-index: 1;
}

.left-panel .logos {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 3;
}

.left-panel .logos img {
  height: 60px;
}

/* Animated Blobs */
.left-panel .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.left-panel .blob-blue {
  width: 200px;
  height: 200px;
  background: rgba(65, 161, 250, 0.8);
  animation: blobMoveBlue 15s ease-in-out infinite;
}

.left-panel .blob-red {
  width: 180px;
  height: 180px;
  background: rgba(255, 50, 50, 0.7);
  animation: blobMoveRed 18s ease-in-out infinite;
}

@keyframes blobMoveBlue {
  0%, 100% {
    transform: translate(20%, 30%) scale(1);
  }
  25% {
    transform: translate(60%, 10%) scale(1.2);
  }
  50% {
    transform: translate(40%, 60%) scale(0.9);
  }
  75% {
    transform: translate(10%, 50%) scale(1.1);
  }
}

@keyframes blobMoveRed {
  0%, 100% {
    transform: translate(70%, 50%) scale(1);
  }
  25% {
    transform: translate(30%, 20%) scale(0.8);
  }
  50% {
    transform: translate(80%, 70%) scale(1.3);
  }
  75% {
    transform: translate(50%, 40%) scale(1);
  }
}
.right-panel .line {
  transform: none;
  width: 30%;
  height: auto;
  margin: 10px 0 15px auto;
  display: block;
  justify-content: end;
}
/* RIGHT PANEL */
.right-panel {
  flex: 0.8;
  position: relative;

  margin-left: -5px; 
  
  
  border: 1px solid #7D7D7D;

  background: rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(19.200000762939453px);
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
 
  border-radius: 0 15px 15px 0;
  border-left: none;
  z-index: 1;
}

.right-panel h2 {
  font-size: 2.3rem;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: "TT Interphases Pro", sans-serif;
  letter-spacing: -2px;
  
}

.right-panel .line {
  width: 30%;
  height: auto;
  margin: 0px 0 15px 0;
  transform: translateY(-10px);
  object-fit: contain;
  display: block;
}

.right-panel p {
  font-size: 0.9rem;
  margin-bottom: 40px;
  font-weight: 300;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.5px;
  
}

/* INPUT BOX */
.input-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
 
}



.input-box i {
  color: #fff;
  margin-right: 10px;
}

.input-box input {
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  width: 100%;
  font-size: 0.95rem;
}

.input-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Inter", sans-serif;
 

  letter-spacing: -0.3px;
}

/* Animated white bottom border on focus */
.input-box::after {
  content: '';
  position: absolute;
  inset: 0; /* match container to inherit full curve */
  border-radius: inherit; /* perfectly follows .input-box curve */
  border-bottom: 3px solid #fff; /* keep the weight constant */
  pointer-events: none;
  /* reveal from bottom without changing thickness */
  -webkit-clip-path: inset(100% 0 0 0);
          clip-path: inset(100% 0 0 0);
  transition: clip-path 0.35s ease, -webkit-clip-path 0.35s ease;
}

.input-box:focus-within::after {
  -webkit-clip-path: inset(0 0 0 0);
          clip-path: inset(0 0 0 0);
}

.label-text {
  font-size: 0.9rem;
  margin-bottom: 5px;
  margin-top: 0;
  font-weight: 300;
  display: block;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.3px;
}


/* FORGOT PASSWORD */
.forgot {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: underline;
  margin-top: -10px;
  margin-bottom: 25px;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.3px;

}

/* LOGIN BUTTON */
.login-btn {
  background: #41a1fa;
  border: none;
  outline: none;
  color: #fff;
  font-weight: 400;
  border-radius: 32px;
  padding: 12px 0;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  font-size: large;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.8px;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    padding: 20px;
    align-items: flex-start;
    padding-top: 100px;
  }
  
  .signin-box {
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .left-panel, .right-panel {
    flex: unset;
    width: 100%;
  }
  
  .left-panel {
    border-radius: 12px 12px 0 0;
  }
  
  .right-panel {
    border-radius: 0 0 12px 12px;
  }

  .left-panel .bg-img {
    height: 250px;
  }

  .right-panel {
    padding: 40px;
    margin-left: 0; 
  }
  
  .back-btn {
    top: 20px;
    right: 20px;
  }
}



/* Footer */
footer {
  color: #fff;
  text-align: center;
  padding: 40px 0;
  position: absolute;
  font-size: 10px;
  z-index: 5;
  bottom: 0;
  left: 0;
  right: 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}

.footer-links a:hover {
  text-decoration: underline;
}


@media (max-width: 900px) {
  .container {
    padding: 20px;
    align-items: flex-start;
    padding-top: 20px; 
  }
  
  .back-btn{
      right: 0;
  }

}
