/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Login card container */
.login-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Logo image */
.logo {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2rem;
  border-radius: 8px;
}

/* Form styling */
#login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  width: 100%;
}

/* Input fields */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #6a6a6a;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* Error message */
.error-message {
  display: none;
  color: #ff6b6b;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 4px;
}

.error-message.visible {
  display: block;
}

/* Submit button */
button[type="submit"] {
  width: 100%;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #00d4ff 0%, #9d4edd 100%);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
}

button[type="submit"]:hover {
  filter: brightness(1.1);
}

button[type="submit"]:active {
  transform: scale(0.98);
}

button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Logout link */
.logout-link {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  color: #6a6a6a;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.logout-link:hover {
  color: #00d4ff;
}
