.handler-login-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
}

.handler-login-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-top: 4px solid var(--color-primary);
}

.handler-login-card h2 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.handler-login-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.handler-mode-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.handler-mode-toggle button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: background 0.2s;
}

.handler-mode-toggle button.active {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

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

.handler-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.handler-form .form-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.handler-form .form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus);
}

.btn-handler-primary {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

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

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

.handler-error {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.handler-success {
  background: #dcfce7;
  color: #166534;
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.handler-hint {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
