:root {
  --primary-color: #321fdb;
  --primary-dark: #2819b0;
  --secondary-color: #9da5b1;
  --success-color: #2eb85c;
  --danger-color: #e55353;
  --light-bg: #f8f9fa;
  --card-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

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

.login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 30px;
  text-align: center;
  color: white;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.login-header h1 img {
  height: 40px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.login-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.login-body {
  padding: 40px 30px;
}

.form-label {
  font-weight: 500;
  color: #3c4b64;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e1e5eb;
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.input-group {
  position: relative;
}

.input-group-text {
  background: transparent;
  border: 2px solid #e1e5eb;
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: #768192;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.input-group:focus-within .input-group-text {
  border-color: #667eea;
}

.btn-login {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
  margin-top: 24px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

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

.form-check-label {
  font-size: 14px;
  color: #768192;
}

.forgot-password {
  font-size: 14px;
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #764ba2;
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #768192;
  margin: 24px 0;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e1e5eb;
}

.divider span {
  padding: 0 16px;
}

.alert {
  border-radius: 8px;
  font-size: 14px;
  border: none;
  margin-bottom: 20px;
}

.alert-danger {
  background-color: #fee;
  color: #c41e3a;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

.login-footer {
  text-align: center;
  padding: 20px;
  color: white;
  font-size: 14px;
}

.login-footer a {
  color: white;
  text-decoration: underline;
}

@media (max-width: 576px) {
  .login-container {
    padding: 15px;
  }

  .login-header {
    padding: 30px 20px;
  }

  .login-body {
    padding: 30px 20px;
  }
}
