/* Login Page Styles - Premium Redesign */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --card-bg: rgba(255, 255, 255, 0.05); /* Glassmorphism */
  --text-white: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  overflow: hidden; /* Prevent scroll from animated bg */
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-gradient);
  position: relative;
  padding: 1.5rem;
}

/* Background animated blobs */
.login-container::before,
.login-container::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.15;
}

.login-container::before {
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation: float 20s infinite alternate;
}

.login-container::after {
  background: #7c3aed;
  bottom: -100px;
  left: -100px;
  animation: float 25s infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 100px);
  }
}

.login-card {
  position: relative;
  z-index: 10;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 440px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
}

.login-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.login-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-white);
  opacity: 0.9;
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.link:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .login-card {
    padding: 2rem;
  }
}
