/* Modern Login CSS */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary-color: #007bff;
  --primary-hover: #0056b3;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --input-border: #ced4da;
  --input-focus: #80bdff;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Stack container and about vertically */
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  padding: 20px 0;
  /* Add some padding for mobile */
}

.container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-sizing: border-box;
}

.login {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.login h1 {
  margin: 0 0 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

.login img {
  max-width: 150px;
  height: auto;
}

#campos_login {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

input[type=text],
input[type=password] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  /* Important for padding */
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type=text]:focus,
input[type=password]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

input[type=submit] {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

input[type=submit]:hover {
  background-color: var(--primary-hover);
}

.login-help {
  margin-top: 20px;
  text-align: center;
}

.login-help a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.login-help a:hover {
  text-decoration: underline;
}

.about {
  margin: 40px auto 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 100%;
  /* Force full width to ensure vertical stacking in flex body */
  max-width: 600px;
  line-height: 1.6;
}

.about-links {
  margin-bottom: 10px;
}

.about a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 10px;
}

.about a:hover {
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .login {
    padding: 20px;
  }
}