:root {
  --color-bg: #f0f2f5;
  --color-surface: #dddddd;
  --color-primary: #1565c0;
  --color-primary-hover: #0d47a1;
  --color-text: #1a1a2e;
  --color-muted: #5c6370;
  --color-border: #dde1e6;
  --color-error: #c62828;
  --color-error-bg: #ffebee;
  --color-success: #2e7d32;
  --color-success-bg: #e8f5e9;
  --radius: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--color-text);
  background: #dddddd;
}

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

a:hover {
  text-decoration: underline;
}

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

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  font-family:bitstream vera sans,verdana,arial,sans;
  background-color:white;
  border:6px solid #000080;
  padding:14px;
}

.auth-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-card .subtitle {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.auth-card footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.dashboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.dashboard h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus {
  outline: 2px solid rgba(21, 101, 192, 0.35);
  border-color: var(--color-primary);
}

.field .hint {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

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

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

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover:not(:disabled) {
  background: #f5f5f5;
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.btn-text {
  background: transparent;
  color: var(--color-primary);
  padding: 0.4rem 0.6rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

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

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

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.alert-info {
  background: #e3f2fd;
  color: #1565c0;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-title {
  font-weight: 500;
}

.list-item-sub {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-success-bg);
  color: var(--color-success);
}

.dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 400px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.dialog-body {
  padding: 1.5rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.meta-row {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.meta-value {
  font-weight: 500;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-muted);
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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