/* ===== Login Page Styles ===== */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-page > * {
  position: relative;
  z-index: 5;
}

/* Background Effect */
.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(139, 69, 19, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(106, 27, 154, 0.2) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Logo */
.login-logo {
  width: 176px;
  height: auto;
  margin-bottom: 40px;
  filter: brightness(1.3) 
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 30px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 1;
}

.login-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.4) 
    drop-shadow(0 0 15px rgba(255, 255, 255, 1))
    drop-shadow(0 0 25px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 35px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 45px rgba(255, 255, 255, 0.7));
}

/* Login Container */
.login-container {
  background: rgba(15, 12, 41, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 45px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(106, 27, 154, 0.2);
  position: relative;
  z-index: 10;
}

.login-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 35px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(45deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.login-title::before {
  content: "🔐";
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
}

.form-input {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-hover);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(106, 27, 154, 0.4), 0 0 5px rgba(106, 27, 154, 0.2);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-button {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
  position: relative;
  overflow: hidden;
}

.login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.login-button:hover:not(:disabled)::before {
  left: 100%;
}

.login-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #6a1b9a, #4a148c);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(106, 27, 154, 0.4);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error Message */
.login-error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #ffcdd2;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  box-shadow: 0 0 15px rgba(244, 67, 54, 0.2);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Footer */
.login-footer {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: center;
  z-index: 10;
}

.login-footer p {
  margin: 4px 0;
  line-height: 1.5;
}

.login-footer p:first-child {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 767px) {
  .login-container {
    padding: 30px 20px;
    width: 100%;
    margin: 0 20px;
  }
  
  .login-logo {
    width: 120px;
    filter: brightness(1.3) 
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 15px rgba(255, 255, 255, 0.8))
      drop-shadow(0 0 25px rgba(255, 255, 255, 0.7));
  }
  
  .login-title {
    font-size: 1.5rem;
  }
}

