:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --surface-0: #ffffff;
  --surface-50: #f8fafc;
  --surface-200: #e2e8f0;
  --surface-300: #cbd5e1;
  --text-color: #1e293b;
  --text-secondary: #64748b;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--surface-50);
  color: var(--text-color);
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface-0);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.auth-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  text-align: center;
}

.p-field {
  margin-bottom: 1.25rem;
}

.p-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.p-inputtext {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--surface-300);
  border-radius: 6px;
  background: var(--surface-0);
  color: var(--text-color);
  transition: border-color .15s, box-shadow .15s;
}

.p-inputtext:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.375rem;
}

.p-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}

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

.p-button-outlined {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--surface-300);
}

.p-button-outlined:hover {
  background: var(--surface-50);
}

.p-message {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.p-message-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.p-message-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surface-200);
}

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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