:root {
  --primary-color: #810B23;
  --primary-hover: #6a0a1d;
  --primary-light: rgba(129, 11, 35, 0.15);
}

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #4C4C4E;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
}

.screen {
  width: 100%;
  max-width: 420px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.logo-wrap {
  text-align: center;
  margin-bottom: 1rem;
}

.logo {
  max-width: 200px;
  height: auto;
}

h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #4C4C4E;
}

input[type="text"],
input[type="password"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.btn {
  display: block;
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #eee;
  color: #4C4C4E;
}

.btn-secondary:hover:not(:disabled) {
  background: #ddd;
}

.error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
}

/* Status banner */
.status-banner {
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.status-banner.status-office {
  background: #d4edda;
  color: #155724;
  border: 1px solid #b7dfbf;
}

.status-banner.status-diverted {
  background: #fce4d6;
  color: #b35900;
  border: 1px solid #f0c8a8;
}

.status-banner.status-unknown {
  background: #e2e3e5;
  color: #4C4C4E;
  border: 1px solid #d0d1d3;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.radio-option input[type="radio"] {
  margin: 0;
}

.radio-option:hover {
  border-color: var(--primary-color);
}

.radio-option.selected.radio-office {
  border-color: #28a745;
  background: #eafaf0;
}

.radio-option.selected.radio-diverted {
  border-color: #e67e22;
  background: #fef5ec;
}

.radio-label {
  font-weight: 600;
}

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

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 1.25rem 0;
}

.status-msg {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.status-msg.success {
  color: #155724;
}

.status-msg.error {
  color: #c0392b;
}

/* Loading spinner */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2rem;
  height: 1.2rem;
  margin: -0.6rem 0 0 -0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
