html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: grid;
  justify-items: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    );
  background-size: 50px 50px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50px);
  }
}

#main-holder {
  width: 50%;
  height: 70%;
  display: grid;
  justify-items: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 10;
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#main-holder::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-size: 400% 400%;
  animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#main-holder:hover::before {
  opacity: 0.8;
}

#login-error-msg-holder {
  width: 100%;
  height: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
}

#login-locked-msg-holder {
  width: 100%;
  height: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
}

#login-error-msg {
  width: 23%;
  text-align: center;
  margin: 0;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 59, 48, 0.5);
  background: rgba(255, 59, 48, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

#login-locked-msg {
  width: 23%;
  text-align: center;
  margin: 0;
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 159, 10, 0.5);
  background: rgba(255, 159, 10, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 159, 10, 0.3);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

#error-msg-second-line {
  display: block;
}

#login-form {
  align-self: flex-start;
  display: grid;
  justify-items: center;
  align-items: center;
  width: 80%;
}

#login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(118, 75, 162, 0.8));
  }
}

.login-form-field::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-form-field {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  border-radius: 0;
  outline: none;
  padding: 12px 5px;
  background: transparent;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.login-form-field:focus {
  border-bottom-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.login-form-field:focus::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

#login-form-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 50px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  outline: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

#login-form-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

#login-form-submit:hover::before {
  left: 100%;
}

#login-form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#login-form-submit:active:not(:disabled) {
  transform: translateY(0);
}

#login-form-submit:disabled {
  background: linear-gradient(135deg, #999 0%, #666 100%);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  #main-holder {
    width: 85%;
    height: auto;
    min-height: 400px;
    padding: 20px;
  }

  #login-error-msg {
    width: 80%;
    font-size: 11px;
  }

  #login-locked-msg {
    width: 80%;
    font-size: 11px;
  }

  .login-form-field {
    width: 100%;
    padding: 10px 5px;
    font-size: 16px;
  }

  #login-form {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #main-holder {
    width: 95%;
    padding: 15px;
  }

  #login-header {
    font-size: 24px;
  }

  #login-error-msg {
    width: 90%;
    font-size: 10px;
  }

  #login-locked-msg {
    width: 90%;
    font-size: 10px;
  }
}
