@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  background: #1e1e2f; /* Fallback for browsers that don't support video */
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  color: #fff;
  z-index: 1;
  position: relative;
}

.video-wrapper {
  width: 100%;
  max-width: 300px; /* Adjusted the max-width for smaller video container */
  height: 150px; /* Set a fixed height */
  margin: 0 auto 20px auto; /* Center the video and add bottom margin */
  background-color: #1e1e2f; /* Match the body background color */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the video covers the entire container */
  border-radius: 10px;
}

.login-container h1 {
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
  color: #ff6f61;
  font-weight: 700;
}

.login-container form {
  display: flex;
  flex-direction: column;
}

.login-container input {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
}

.login-container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  flex: 1;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 40%;  /* Adjusted top value to move the eye icon up */
  transform: translateY(-50%);
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.toggle-password img {
  width: 100%;
  height: auto;
}

.toggle-password.visible img {
  content: url('eye-slash.png'); /* Use the same image for now or replace with a slash icon */
}

.login-container button {
  padding: 12px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #ff6f61, #d63384);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.login-container button:hover {
  background: linear-gradient(135deg, #d63384, #ff6f61);
  transform: translateY(-3px);
}

#error-message {
  margin-top: 10px;
  color: #ff6f61;
  font-weight: 500;
}

.spinner-container {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #ff6f61;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
