body {
  margin: 0;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.banner {
  height: 95vh; /* Full viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0px; /* Padding for small screens */
}

.Already-account{
  padding-top: 10px;
}
.Already-account a {
  color: red; 
  text-decoration: none; 
  font-weight: bold;
}

.Already-account a:hover {
  color: rgb(241, 162, 162); 
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/valentin-petrov-m-mal-01.webp');
  background-size: cover;
  background-position: center;
  animation: bgZoomIn 4s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/after.webp');
  background-size: cover;
  background-position: top;
  transform: scale(2);
  animation: bgZoomOut 4s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes bgZoomIn {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}

@keyframes bgZoomOut {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(2);
  }
}

svg path {
  fill: transparent;
  stroke: #fff;
  stroke-width: 0.1;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: textAnimation 4s ease-in-out 1 forwards;
}

@keyframes textAnimation {
  0% {
    stroke-dashoffset: 50;
  }
  80% {
    fill: transparent;
  }
  100% {
    fill: #fff;
    stroke-dashoffset: 0;
  }
}

.unique-form {
  max-width: 350px;
  width: 80%;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.6;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(9px);
  color: #fff;
}

h2 {
  margin-bottom: 20px;
  font-size: 1.5em;
}

label {
  width: 100%;
}

input[type="text"],
input[type="password"],
input[type="tel"] {
  margin: 5px 0;
  padding: 10px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.remember-me {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 10px 0;
}

.remember-me input {
  margin-right: 5px;
}

.login-button {
  margin-top: 10px;
  padding: 10px;
  background-color: #ad6506;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  width: 50%;
  text-align: center;
  display: inline-block;
}

.forgot-password,
.sign-up {
  margin-top: 10px;
  text-decoration: none;
  color: #ab8554;
}

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

/* Tablet View */
@media (max-width: 768px) {
  .banner {
    /* height: auto; Set to auto to adjust height for smaller screens */
    padding: 0px;
  }

  .unique-form {
    max-width: 400px;
    width: 85%;
    margin-top: 5%;
    padding: 0px;
  }

  h2 {
    font-size: 1.4em;
    margin-bottom: 5px;
  }

  input[type="text"],
  input[type="password"],
  input[type="tel"],
  .login-button {
    font-size: 1em;
  }
}

/* Mobile View (600px and below) */
@media (max-width: 600px) {
  .banner {
    height: 100vh; /* Adjust height to fit content on small screens */
    padding: 0px; /* Less padding on small screens */
  }

  .unique-form {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    margin-top: 5%;
    margin-bottom: 5%;
  }

  h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  input[type="text"],
  input[type="password"],
  input[type="tel"],
  .login-button {
    width: 100%;
    font-size: 1em;
    padding: 12px; /* Increased padding for better touch targets */
  }

  .login-button {
    font-size: 1.1em;
  }
}

/* Small Mobile View */
@media (max-width: 400px) {
  .banner {
    height: 100vh;
    padding: 10px;
  }

  h2 {
    font-size: 1.1em;
  }

  .unique-form {
    padding: 12px;
  }

  input[type="text"],
  input[type="password"],
  input[type="tel"],
  .login-button {
    padding: 8px;
    font-size: 0.9em;
  }

  .login-button {
    font-size: 0.9em;
  }
}

/* Large Screens */
@media (min-width: 1200px) {
  .banner {
    height: 150vh; /* Full screen height on large devices */
  }

  .unique-form {
    max-width: 400px;
    width: 60%;
    padding: 30px;
  }

  h2 {
    font-size: 2em;
  }

  input[type="text"],
  input[type="password"],
  input[type="tel"] {
    font-size: 1.2em;
    padding: 12px;
  }

  .login-button {
    padding: 12px;
    font-size: 1.1em;
  }
}
.loading-btn {
  position: relative;
  padding: 10px 20px;
  font-size: 16px;
  cursor: not-allowed;
  pointer-events: none;
  color: transparent; /* Hide the text */
}

.loading-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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