* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 60px;
  background-color: #004080; /* azul GPIN */
  width: 100%;
}

main.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: #fff;
  border-radius: 8px;
  padding: 30px 40px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  max-width: 420px;
  width: 100%;
  text-align: center;
  border-top: 3px solid #004080;
}

.logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.login-title {
  font-size: 15px;
  margin-bottom: 20px;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 10px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #002c5f;
}

.error {
  color: red;
  font-size: 13px;
}

.user-info {
  margin: 10px 0;
  font-size: 14px;
  color: #004080;
}

.language-switch {
  margin-top: 20px;
  font-size: 13px;
}

.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #666;
  background-color: #f2f2f2;
  border-top: 1px solid #ddd;
}

.footer a {
  color: #004080;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 6px solid #e0e0e0;
  border-top: 6px solid #004080;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
