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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


body {
  background: url('background picture/background picture1.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  padding-top: 100px; /* spacing for fixed header */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  background-color: #00000000; /* Optional: for contrast */
}

.center-container {
  display: flex;
  justify-content: center;   /* Center horizontally */
  align-items: flex-start;   /* Align to top vertically */
  height: 100vh;
  padding-top: 40px;         /* Space from the very top */
}

h2 {
  font-weight: 400;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 1px;
  text-transform: capitalize;
  text-align: center;
  margin: 0; /* Remove default margins */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  position: relative;
  transition: color 0.4s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #4946f1;
  transition: width 0.4s ease;
}

nav a:hover,
nav a:focus {
  color: #4946f1;
}

nav a:hover::after,
nav a:focus::after {
  width: 100%;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: #85b9E9;
  border-radius: 20px;
  padding: 5px 10px;
  transition: box-shadow 0.4s ease;
}

.search-bar:hover,
.search-bar:focus-within {
  box-shadow: 0 0 8px 2px #4946f1;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  padding: 5px;
  width: 150px;
  font-size: 16px;
  color: #000;
}

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #000;
  transition: color 0.3s ease;
}

.search-bar button:hover,
.search-bar button:focus {
  color: #4946f1;
}

nav button,
.login-button {
  color: white;
  background: none;
  border: 2px solid white;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 15px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
}

nav button:hover,
nav button:focus,
.login-button:hover,
.login-button:focus {
  background-color: #4946f1;
  color: white;
  transform: scale(1.1);
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 430px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 10;
}

.container .forms {
  display: flex;
  align-items: center;
  height: 440px;
  width: 200%;
  transition: height 0.2s ease;
}

.container .form {
  width: 50%;
  padding: 30px;
  background-color: #fff;
  transition: margin-left 0.18s ease;
}

.container.active .login {
  margin-left: -50%;
  opacity: 0;
  transition: margin-left 0.18s ease, opacity 0.15s ease;
}

.container .signup {
  opacity: 0;
  transition: opacity 0.09s ease;
}

.container.active .signup {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.container.active .forms {
  height: 600px;
}

.container .form .title {
  position: relative;
  font-size: 27px;
  font-weight: 600;
}

.form .title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 30px;
  background-color: #4070f4;
  border-radius: 25px;
}

.form .input-field {
  position: relative;
  height: 50px;
  width: 100%;
  margin-top: 30px;
}

.input-field input {
  position: absolute;
  height: 100%;
  width: 100%;
  padding: 0 35px;
  border: none;
  outline: none;
  font-size: 16px;
  border-bottom: 2px solid #ccc;
  border-top: 2px solid transparent;
  transition: all 0.2s ease;
}

.input-field input:is(:focus, :valid) {
  border-bottom-color: #4070f4;
}

.input-field i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 23px;
  transition: all 0.2s ease;
}

.input-field input:is(:focus, :valid) ~ i {
  color: #4070f4;
}

.input-field i.icon {
  left: 0;
}

.input-field i.showHidePw {
  right: 0;
  cursor: pointer;
  padding: 10px;
}

.form .checkbox-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.checkbox-text .checkbox-content {
  display: flex;
  align-items: center;
}

.checkbox-content input {
  margin-right: 10px;
  accent-color: #4070f4;
}

.form .text {
  color: #333;
  font-size: 14px;
}

.form a.text {
  color: #4070f4;
  text-decoration: none;
}

.form a:hover {
  text-decoration: underline;
}

.form .button {
  margin-top: 35px;
}

.form .button input {
  border: none;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 6px;
  background-color: #4070f4;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 12px;
  width: 100%;
}

.button input:hover {
  background-color: #265df2;
}

.form .login-signup {
  margin-top: 30px;
  text-align: center;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Para hindi mag-overflow ang elements */
}

h1 {
    text-align: center;
    color: #4CAF50;
    font-size: 5vw; /* Font size will adjust based on viewport width */
}

.container {
    width: 90%; /* 90% ng width ng screen */
    margin: 0 auto; /* Centering the content */
    padding: 20px;
}

/* Mobile-friendly design */
@media only screen and (max-width: 600px) {
    h1 {
        font-size: 6vw; /* Bigger font size on mobile */
    }

    .container {
        width: 100%; /* Full width for mobile devices */
        padding: 10px; /* Less padding for smaller screens */
    }
}

/* Tablet layout */
@media only screen and (max-width: 768px) {
    h1 {
        font-size: 4vw; /* Adjust font size */
    }

    .container {
        width: 95%; /* Adjust container width */
        padding: 15px;
    }
}

/* Desktop layout */
@media only screen and (min-width: 1024px) {
    h1 {
        font-size: 3vw; /* Smaller font size for large screens */
    }

    .container {
        width: 80%; /* Narrower container for desktops */
        padding: 40px;
    }
}
img {
    max-width: 100%;
    height: auto; /* Maintains aspect ratio */
}
button {
    width: 50%; /* 50% of the container width */
    padding: 10px;
    font-size: 1.2em; /* Font size will scale */
}
