:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --text: #111827;
  --border: #e5e7eb;
  --error: #dc2626;
  --success: #16a34a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-container {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgb(0, 0, 0, 0.1), 0 2px 4px -2px rgb(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  box-sizing: border-box;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 0.625rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

button:hover {
  background-color: var(--primary-hover);
}

.error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.info {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 1rem;
  text-align: center;
}

.footer-links {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

body { padding: 1rem; box-sizing: border-box; }
input[type="checkbox"] { width: auto; }
[role="alert"] { color: var(--error); }
.auth-container form + form { margin-top: 1rem; }

.auth-container { box-sizing: border-box; }
.auth-container h2 { font-size: 1.1rem; }
.auth-container input { border-color: #64748b; }
.auth-container :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.auth-container a { text-decoration: underline; }
.auth-container small { display: block; margin-top: .35rem; }
@media (max-width: 420px) { .auth-container { padding: 1.25rem; } }

.auth-container input[type="checkbox"] {
  width: auto;
  margin-inline-end: .5rem;
}

.profile-photo-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.company-logo-preview { display: block; max-width: 100%; max-height: 100px; object-fit: contain; margin: .75rem 0; }
[hidden] { display: none !important; }
