@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0c1b2a 0%, #1a2738 50%, #0e1f30 100%);
  color: #e0e0e0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-card {
  background: linear-gradient(145deg, #141e2b, #1c2a3a);
  border: 1px solid #334455;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(118, 199, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #76c7ff, transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.nova-logo {
  height: auto;
  max-height: 120px;
  width: auto;
  max-width: 80%;
  filter: drop-shadow(0 0 10px rgba(118, 199, 255, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nova-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(118, 199, 255, 0.5));
}

.flash-messages {
  margin-bottom: 20px;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #b2ffb2;
  border-color: rgba(40, 167, 69, 0.3);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.2);
  color: #ffb2b2;
  border-color: rgba(220, 53, 69, 0.3);
}

.alert-info {
  background-color: rgba(118, 199, 255, 0.2);
  color: #b2e0ff;
  border-color: rgba(118, 199, 255, 0.3);
}

.login-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: #1e2c3a;
  color: #ffffff;
  border: 1px solid #334455;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: #8899aa;
}

.form-control:focus {
  outline: none;
  border-color: #76c7ff;
  box-shadow: 0 0 0 3px rgba(118, 199, 255, 0.2);
  background-color: #223447;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox {
  width: 18px;
  height: 18px;
  background-color: #1e2c3a;
  border: 1px solid #334455;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox:checked {
  background-color: #76c7ff;
  border-color: #76c7ff;
}

.checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0c1b2a;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label {
  color: #e0e0e0;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0;
}

.btn-login {
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2d72d9, #1b4ea0);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #1b4ea0, #2d72d9);
  box-shadow: 0 4px 15px rgba(45, 114, 217, 0.4);
  transform: translateY(-1px);
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(45, 114, 217, 0.3);
}

.login-footer {
  text-align: center;
  border-top: 1px solid #334455;
  padding-top: 20px;
}

.login-footer p {
  margin: 0 0 5px 0;
  color: #76c7ff;
  font-weight: 600;
  font-size: 0.9rem;
}

.login-footer small {
  color: #8899aa;
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-container {
    padding: 10px;
  }
  
  .login-card {
    padding: 30px 20px;
  }
  
  .nova-logo {
    max-height: 100px;
  }
}

/* Loading state for button */
.btn-login:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

/* Focus management for accessibility */
.form-control:focus,
.checkbox:focus,
.btn-login:focus {
  outline: 2px solid #76c7ff;
  outline-offset: 2px;
}