:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #f0f2f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  margin: 0;
  padding: 1rem;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  width: 400px;
  max-width: 100%;
}

.header { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.header img { height: auto; }
.bold { font-weight: bold; width: 10ch; overflow-wrap: break-word; margin: 0; }

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
}

h1 { font-size: 24px; margin: 0 0 20px; }

input[type="text"], input[type="password"], input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #767676;
  border-radius: 5px;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #2e7d32; /* darker than the old #4CAF50 to meet WCAG AA contrast with white text */
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}
button:hover:not(:disabled) { background-color: #1b5e20; }
button:disabled { opacity: 0.6; cursor: progress; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

.result, .error { margin-top: 20px; font-size: 16px; padding: 10px; border-radius: 5px; }
.result { background-color: #e7f3e7; color: #1e5c1e; }
.error  { background-color: #f8d7da; color: #721c24; }
.info   { margin: 0.5rem 0 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
