/* Auth pages — login, signup, profile. Reuses CSS variables from styles.css. */
.auth-page {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Inter", sans-serif;
}
.auth-card {
  width: 100%; max-width: 380px;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 32px 28px; border: 1px solid var(--border);
}
.auth-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px; justify-content: center;
}
.auth-brand-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, #378ADD, #185FA5);
  display: inline-flex; align-items: center; justify-content: center;
}
.auth-brand-icon svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 2.5; }
.auth-brand-name { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.auth-title { font-size: 24px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.3px; }
.auth-sub { font-size: 14px; color: var(--text-2); margin: 0 0 24px; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.auth-field input {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); outline: none;
}
.auth-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55,138,221,0.15); }
.auth-btn {
  width: 100%; padding: 13px; font-size: 15px; font-weight: 500; font-family: inherit;
  border: none; border-radius: var(--radius); cursor: pointer;
  background: var(--accent); color: white; margin-top: 6px;
}
.auth-btn:hover { background: var(--accent-deep); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-btn-google {
  width: 100%; padding: 12px; font-size: 14px; font-weight: 500; font-family: inherit;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.auth-btn-google:hover { background: var(--surface-2); }
.auth-btn-google.disabled { opacity: 0.5; cursor: not-allowed; }
.auth-btn-google svg { width: 18px; height: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-3); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-link:hover { text-decoration: underline; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-2); }
.auth-error {
  background: #FCEBEB; color: var(--danger);
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 14px;
}
.auth-error:empty { display: none; }
.auth-success {
  background: #E1F5EE; color: var(--success);
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 14px;
}

/* Profile-specific */
.profile-card { width: 100%; max-width: 480px; }
.profile-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.profile-row:last-child { border: none; }
.profile-row .lbl { color: var(--text-2); font-size: 13px; }
.profile-section-title {
  font-size: 11px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 22px 0 8px; font-weight: 600;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 22px;
}
.invite-row {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px; margin-top: 8px; font-size: 13px;
  display: flex; flex-direction: column; gap: 6px;
}
.invite-row code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; word-break: break-all; color: var(--text-2);
}
.invite-row .invite-actions { display: flex; gap: 8px; margin-top: 4px; }
.invite-btn-sm {
  padding: 6px 12px; font-size: 12px; border-radius: 6px;
  border: 1px solid var(--border-strong); background: var(--surface);
  cursor: pointer; font-family: inherit;
}
.invite-btn-sm:hover { background: var(--surface-2); }
.invite-btn-sm.danger { color: var(--danger); border-color: rgba(163,45,45,0.3); }
