/* Reset & Base */
* {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", sans-serif;
  color: #333;
}

/* Background & Overlay */
.register,
.login {
  background-image: linear-gradient(
      180deg,
      black 0%,
      rgba(0, 0, 0, 0.452) 20%,
      transparent 100%
    ),
    url("http://localhost/learning-5-creating-an-app/files/images/vimal-s-cPGMrfAuUSg-unsplash.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  padding: 20px;
  position: relative;
}
.register::before,
.login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Logo & Title */
.div-little {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}
.div-little img {
  height: auto;
}
.l-c-white {
  color: #fff;
}

/* Card Container */
.div-parent-style-simple {
  display: flex;
  justify-content: center;
  padding: 20px;
  margin-bottom: 30px;
}
.div-child-style-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px;
  width: 100%;
  max-width: 500px;
  min-width: 280px;
  border: 2px solid #7a7a7a;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  border-radius: 20px;
}

/* Form Elements */
label,
.label-s-2 {
  display: block;
  margin: 15px 0 5px;
  font-weight: 600;
  font-size: clamp(16px, 4vw, 20px);
}
.input-s-1 {
  width: 90%;
  padding: 12px;
  font-size: clamp(14px, 4vw, 18px);
  border: 1px solid #ddd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.input-s-1::placeholder {
  color: #000;
}

/* Button */
.btn,
input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 300px;
  align-self: stretch;
  margin: 10px auto 0;
  padding: 12px 30px;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: bold;
  color: #fff;
  background: linear-gradient(270deg, red, orange, red) 0/400% 400% no-repeat;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  animation: moveGradient 5s ease infinite;
  transition: transform 0.2s, background 0.2s, color 0.2s, border 0.2s;
}
.btn:hover,
input[type="submit"]:hover {
  transform: scale(1.05);
  background: transparent;
  border: 2px solid #000;
  color: #000;
}
@keyframes moveGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Image Responsiveness & Focus */
img {
  max-width: 100%;
  height: auto;
}
input:focus,
button:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .div-parent-style-simple {
    padding: 10px;
  }
  .register,
  .login {
    padding: 10px;
  }
  h1 {
    font-size: clamp(24px, 6vw, 32px);
  }
  .div-child-style-simple {
    border-radius: 15px;
    padding: 15px;
    min-width: 90%;
  }
}

@media (max-width: 480px) {
  .input-s-1 {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 15px;
  }
  .label-s-2 {
    margin: 10px 0 5px;
    font-size: 16px;
  }
  .div-child-style-simple {
    min-width: 95%;
    padding: 15px 10px;
  }
  .btn,
  input[type="submit"] {
    padding: 10px 20px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .register,
  .login {
    min-height: 150vh;
  }
}
#login-div-child {
  align-items: stretch;
}
label,
p {
  color: black;
}

#show-password {
  flex-direction: row;
  align-items: start;
  background-color: #a3a3a3;
  max-width: 50%;
  padding: 10px;
  margin-top: 10px;
  gap: 10px;
  margin-bottom: 20px;
}
#show-password button {
  padding: 10px;
}
.no-copy {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.error-popup {
  background-color: white;
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 50vw;
  height: 50vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 30px;

  opacity: 1;
  transition: opacity 0.4s ease;
}

.error-popup.hidden {
  display: none;
  opacity: 0;
}

.error-popup.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.error-popup svg {
  width: 100px;
  height: 100px;
}

.error-popup p {
  font-size: 20px;
  color: red;
  padding-top: 10px;
}
.btn2 {
  padding: 15px;
  font-size: 16px;
  background-color: #3498db;
  color: white;
  margin: 50px;
  border: none;
  padding-left: 25px;
  padding-right: 25px;
  font-family: "Poppins", sans-serif;
}
@media (max-width: 768px) {
  .main-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}
.remember_30_days label {
  font-size: 8px;
}
.remember_30_days {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
}
