html {
  font-size: 14px;
}

/* --- Variables & Reset --- */
:root {
  --primary-color: #2563eb;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius: 8px;
  --transition: all 0.2s ease-in-out;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.hidden {
  display: none;
}

/* --- Container & Card --- */
.login-container {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- Header & Logo --- */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

/* --- Form Elements --- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

input,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- Button (Optional but helpful) --- */
.login-submit {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.login-submit:hover {
  background-color: #1d4ed8;
}

/* --- Responsive Adaptations --- */

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Mobile View: Stretch and remove borders */
@media (max-width: 640px) {
  body {
    align-items: flex-start;
    /* Align to top on mobile */
    background-color: var(--card-bg);
    /* Match card background */
  }

  .login-container {
    max-width: 100%;
    min-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 3rem 1.5rem;
  }
}

/* Tablet & Desktop View: Centered with border (handled by default styles) */
@media (min-width: 641px) and (max-width: 1024px) {
  .login-container {
    max-width: 400px;
  }
}