/* Auth Screen */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-secondary);
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--surface-border);
}

.auth-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--logo-color);
  margin-bottom: 2rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-tertiary);
  font-size: 0.925rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.auth-error {
  background: var(--red-50);
  border: 1px solid #fecaca;
  color: var(--red-600);
  font-size: 0.85rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  line-height: 1.4;
}

[data-theme="dark"] .auth-error {
  border-color: rgba(220, 38, 38, 0.3);
}

.auth-toggle {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 1rem;
}

.auth-toggle a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}

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

.auth-footer {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 1.5rem;
  line-height: 1.5;
}

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

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

/* Secondary Screens (Life Info, Collaborators, Settings, Reports) */
.secondary-screen {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.secondary-screen .screen-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.secondary-screen .screen-header h1 {
  flex: 1;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: all 0.15s;
}

.back-btn:hover {
  color: var(--text-secondary);
  background: var(--surface-hover);
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.section-block {
  margin-bottom: 2.5rem;
}

.section-block h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* List items for life info, collaborators */
.list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  transition: border-color 0.15s;
}

.list-item:hover {
  border-color: var(--surface-border-hover);
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.list-item-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.list-item-actions {
  display: flex;
  gap: 0.25rem;
}

/* Reports Screen */
.report-section {
  margin-bottom: 2rem;
}

.report-category-group {
  margin-bottom: 1.5rem;
}

.report-category-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.report-category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.report-category-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
}

.report-category-total {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.report-entity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--surface-border);
}

.report-entity-name {
  color: var(--text-secondary);
}

.report-entity-value {
  color: var(--text-primary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.report-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 2px solid var(--text-primary);
}

.report-total-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.report-total-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}

/* Settings items */
.settings-group {
  margin-bottom: 2rem;
}

.settings-group h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.danger-zone {
  border: 1px solid var(--red-500);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.danger-zone p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
