/* login-style.css */

/* 1. Define Color Palette and Variables */
:root {
  --bg-color: #f8f9fa;
  --card-bg-color: #ffffff;
  --primary-text-color: #212529;
  --secondary-text-color: #6c757d;
  --primary-color: #4a90e2;
  --primary-hover-color: #357abd;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.08);
}

/* 2. Automatic Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --card-bg-color: #1e1e1e;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #a0a0a0;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.25);
  }
}

/* 3. General Body Styles for Centering */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--primary-text-color);
  /* This centers the login card perfectly in the middle of the page */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* 4. Login Card Styling */
.container {
  background-color: var(--card-bg-color);
  padding: 2.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--shadow-color);
  border: 1px solid var(--border-color);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

/* 5. Typography */
h2 {
  font-weight: 700;
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* 6. Form Elements */
input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  background-color: var(--bg-color);
  color: var(--primary-text-color);
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* 7. Buttons */
button {
  width: 100%;
  padding: 14px 20px;
  margin-top: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  background-color: var(--primary-color);
  color: white;
  transition: all 0.2s ease;
}

button:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Add this to login-style.css */
.logo-img {
  height: 100px;
  margin-bottom: 1.5rem;
}
/* 8. Error Message Styling */
.error-message {
  color: #d93025;
  font-weight: 500;
  margin-top: 1.5rem;
  min-height: 1.2em; /* Prevents layout shift when message appears */
}
