/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: url('/image/login/image 5.png') no-repeat center center;
  background-attachment: fixed;
  background-size: cover;
  /* min-height: 100vh; */
  /* height: 100vh; */
  display: flex;
  justify-content: center;
  /* align-items: center; */
  position: relative;
  margin: 0;
  padding-top: 6%;  
  overflow-x: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(to bottom, rgba(135, 206, 250, 0.3), rgba(255, 255, 255, 0.5)); */
  pointer-events: none;
}

.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 680px;
  padding: 20px;
}

.login-logo {
  margin-bottom: 40px;
  text-align: center;
  animation: fadeInDown 0.6s ease-out;
}

.login-logo img {
  width: 100px;
  height: auto;
  /* filter: drop-shadow(0 4px 8px rgba(69, 167, 255, 0.3)); */
  margin: auto;
}

.login-logo img:last-child {
  width: 280px;
}

.login-title-text {
  display: none;
}

.login-box {
  background: rgba(255, 255, 255, 0.466);
  backdrop-filter: blur(4px);
  padding: 50px 43px 5px 43px ;
  border-radius: 38px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 580px;
  animation: fadeInUp 0.6s ease-out;
  border: 10px solid white;
}

.input-box {
  margin-bottom: 28px;
}

.input-box label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.input-box input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(208, 215, 226, 0.5);
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s;
  color: #2c3e50;
}

.input-box input::placeholder {
  color: #b0b8c4;
  font-size: 14px;
}

.input-box input:focus {
  border-color: #45a7ff;
  box-shadow: 0 0 0 4px rgba(69, 167, 255, 0.12);
  background: #fff;
}

.input-box.password-box {
  position: relative;
}

.input-box.password-box input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 18px;
  top: 70%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 22px;
  height: 22px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.toggle-password:hover {
  opacity: 1;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #45a7ff;
}

.remember-me label {
  cursor: pointer;
  color: #555;
  font-weight: 500;
}

.forgot-password {
  color: #888;
  text-decoration: underline;
  font-weight: 400;
  transition: color 0.2s;
  font-size: 13px;
}

.forgot-password:hover {
  color: #45a7ff;
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #5db7ff 0%, #3b9df5 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(69, 167, 255, 0.35);
  letter-spacing: 0.5px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #45a7ff 0%, #2f8de0 100%);
  box-shadow: 0 6px 20px rgba(69, 167, 255, 0.45);
  transform: translateY(-2px);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(69, 167, 255, 0.3);
}

#login-msg {
  text-align: center;
  margin-top: 16px;
  font-weight: 500;
  font-size: 14px;
  padding: 10px;
  border-radius: 6px;
  animation: fadeIn 0.4s ease-out;
}

.success {
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
}

.error {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .login-container {
    padding: 15px;
    max-width: 500px;
  }
  
  .login-logo img {
    width: 80px;
  }
  
  .login-box {
    padding: 35px 30px;
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .login-box {
    padding: 30px 25px;
  }
  
  .input-box input {
    padding: 14px 16px;
  }
}