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

body {
  position: relative;
  font-family: "Arial", sans-serif;
  background-color: #f4f4f4;
  background-image: linear-gradient(
      135deg,
      rgba(10, 11, 11, 0.37),
      rgba(12, 12, 12, 0.3)
    ),
    url("pixelcut-export.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: #333;
  min-height: 100vh;
}

#bg-img {
  position: relative;
  height: 100vh;
  width: 1536px;
  z-index: -1;
}

#logo {
  position: absolute;
  margin-left: -25px;
  margin-top: -60px;
  height: 270px;
  width: 330px;
}
.logo {
  position: absolute;
  margin-left: 330px;
  margin-top: 40px;
  font-size: 60px;
  letter-spacing: 8px;
  font-style: italic;
  color: rgb(194, 38, 38);
}

 .container {
  display: flex;
  position: relative;
  align-items: center;
  height: 100vh;
  padding: 20px;
} 


.form-container,
.result-container {
  position: absolute;
  background: linear-gradient(135deg, #ffffff, #f0f4ff);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-left: 150px;
}

.form-container:hover,
.result-container:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #2d57a0;
  font-size: 1.8rem;
  font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="number"],
button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
a {
  text-decoration: none;
  color: black;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
input[type="number"]:focus {
  border-color: #2d57a0;
  box-shadow: 0 0 5px rgba(45, 87, 160, 0.5);
  outline: none;
}

button {
  background: linear-gradient(135deg, #2d57a0, #1c387d);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: linear-gradient(135deg, #1c387d, #2d57a0);
  transform: translateY(-2px);
}

.links {
  text-align: center;
  margin-top: 15px;
}

.links a {
  color: #2d57a0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.links a:hover {
  color: #1c387d;
  text-decoration: underline;
}

.result-container {
  text-align: center;
}

.result-container img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.result-container a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #2d57a0, #1c387d);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.result-container a:hover {
  background: linear-gradient(135deg, #1c387d, #2d57a0);
  transform: translateY(-2px);
}

/* loader */
 .spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 5px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

/* responsive */

@media screen and (max-width: 768px) {
  .container {
    overflow-x: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }
  body{
    overflow-x: hidden;
  }

  .form-container {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
    padding: 20px;
  }

  #logo {
    height: 150px;
    width: 200px;
    position: relative;
    margin: 0 auto;
    display: block;
    top: 10px;
  }

  #bg-img {
    display: none;
  }

  h2 {
    font-size: 20px;
    text-align: center;
  }

  input[type="email"],
  input[type="password"],
  button {
    padding: 10px;
    font-size: 16px;
  }

  .links {
    flex-direction: column;
    text-align: center;
  }

  .links a {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 480px) {
  .form-container {
    width: 95%;
    padding: 15px;
    border-radius: 8px;
  }

  #logo {
    height: 130px;
    width: 180px;
  }

  h2 {
    font-size: 18px;
  }

  input,
  button {
    padding: 10px;
    font-size: 14px;
  }

  .links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
}

/* Prevent horizontal scroll issues */
body {
  overflow-x: hidden;
}

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

body {
  position: relative;
  font-family: "Arial", sans-serif;
  background-color: #f4f4f4;
  background-image: linear-gradient(
      135deg,
      rgba(10, 11, 11, 0.37),
      rgba(12, 12, 12, 0.3)
    ),
    url("pixelcut-export.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: #333;
  min-height: 100vh;
}

#bg-img {
  position: relative;
  height: 100vh;
  width: 1536px;
  z-index: -1;
}

#logo {
  position: absolute;
  margin-left: -25px;
  margin-top: -60px;
  height: 270px;
  width: 330px;
}

.logo {
  position: absolute;
  margin-left: 330px;
  margin-top: 40px;
  font-size: 60px;
  letter-spacing: 8px;
  font-style: italic;
  color: rgb(194, 38, 38);
}

.container {
  display: flex;
  position: relative;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

.form-container,
.result-container {
  position: absolute;
  background: linear-gradient(135deg, #ffffff, #f0f4ff);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-left: 150px;
}

.form-container:hover,
.result-container:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #2d57a0;
  font-size: 1.8rem;
  font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="number"],
button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
a {
  text-decoration: none;
  color: black;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
input[type="number"]:focus {
  border-color: #2d57a0;
  box-shadow: 0 0 5px rgba(45, 87, 160, 0.5);
  outline: none;
}

button {
  background: linear-gradient(135deg, #2d57a0, #1c387d);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: linear-gradient(135deg, #1c387d, #2d57a0);
  transform: translateY(-2px);
}

.links {
  text-align: center;
  margin-top: 15px;
}

.links a {
  color: #2d57a0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.links a:hover {
  color: #1c387d;
  text-decoration: underline;
}

.result-container {
  text-align: center;
}

.result-container img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.result-container a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #2d57a0, #1c387d);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.result-container a:hover {
  background: linear-gradient(135deg, #1c387d, #2d57a0);
  transform: translateY(-2px);
}

/* Loader */
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 5px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile Responsive Styling */
@media screen and (max-width: 768px) {
  .container {
    overflow-x: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }
  body {
    overflow-x: hidden;
  }

  .form-container {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
    padding: 20px;
  }

  #logo {
    height: 150px;
    width: 200px;
    position: relative;
    margin: 0 auto;
    display: block;
    top: 10px;
  }

  #bg-img {
    display: none;
  }

  h2 {
    font-size: 20px;
    text-align: center;
  }

  input[type="email"],
  input[type="password"],
  button {
    padding: 10px;
    font-size: 16px;
  }

  .links {
    flex-direction: column;
    text-align: center;
  }

  .links a {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 480px) {
  .form-container {
    width: 95%;
    padding: 15px;
    border-radius: 8px;
  }

  #logo {
    height: 130px;
    width: 180px;
  }

  h2 {
    font-size: 18px;
  }

  input,
  button {
    padding: 10px;
    font-size: 14px;
  }

  .links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}


