@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --poppins: "Poppins", sans-serif;
  --lato: "Lato", sans-serif;
  --primary-color: #bc8f8f;
  --hover-color: paleturquoise;
  --error-bg: lightcyan;
  --white: #ffffff;
}

/* Base Styles */
* {
  font-family: var(--poppins);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* subtle gradient overlay to the background */
/*body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.8) 20%,
      rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}*/

body {
  font-family: Arial, sans-serif;
  background: url("../img/chineseart6.jfif") no-repeat center center/cover; 
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Logo Container */
.logo-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color:rgba(220, 200, 20, 0.336);
  padding: 15px 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.logo-container .logo {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.logo-container .label {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
}

.video-background{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  
}

.video-background::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;

}
/* Login Container */
.container {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  padding: 103px 50px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
  text-align: center;
  max-width: 650px;
  width: 50%;
  margin: 0;
  position: relative;
  z-index: 100;
  animation: slideInFromLeft 1.5s ease-in-out;
}

/* Login Box */
.login-box h1 {
  margin-bottom: 50px;
  font-size: 24px;
  color: mintcream;
  letter-spacing: 1px;
  font-family: var(--poppins);
}

/* Input Groups */
.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.5px;
}

.input-group input {
  color: white;
  width: 100%;
  padding: 20px 25px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: transparent;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(45deg, #f73f3f, #51d9f1);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 50px;
}

.login-btn:hover {
  background: linear-gradient(-45deg, #f8ec40, #eb57c6);
  color: white;
  opacity: 0.7 red;
  transform: translateX(-10px);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 10px;
    color: white;
    font-size: 14px;
}

/* Google Button */
.google-btn {
  width: 100%;
  height: 52px;
  background-color: whitesmoke;
  border-radius: 5px;
  box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  
}

.google-btn:hover {
  box-shadow: 0 0px 5px rgba(14, 255, 223, 0.6);
  transform: translateX(-10px);
}

.google-icon-wrapper {
  width: 40px;
  height: 40px;
  margin: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.google-icon {
  width: 24px;
  height: 24px;
}

.btn-text {
  color: #000000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Error Message */
#error-message {
  display: none;
  margin: 20px auto;
  color: red;
  letter-spacing: 0.5px;
  font-size: 15px;
  font-weight: 200;
  background-color: var(--error-bg);
  border-radius: 30px;
  padding: 8px;
  width: 70%;
}

/* Add a subtle floating animation to the container */
@keyframes float {
  0% {
    transform: translateY(0px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  }
}

/* Slide-in Animation */
@keyframes slideInFromLeft {
  from {
    transform: translatex(100%);
    opacity: 0;
  }
  to {
    transform: translatex(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    width: 90%;
    padding: 20px;
    margin: 0 auto;
  }

  .logo-container {
    padding: 10px 20px;
  }

  .logo-container .logo {
    width: 180px;
  }

  .input-group input {
    padding: 15px;
  }

  .login-btn {
    padding: 15px;
  }
}
