/* ─── Readable. — Auth Styles ────────────────────────────────────
   Add these styles to the bottom of styles.css
──────────────────────────────────────────────────────────────── */

/* ── Auth Overlay ────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}

.auth-tagline {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.5;
}

/* Social Buttons */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
}

.btn-social:hover  { opacity: 0.85; transform: translateY(-1px); }
.btn-social:active { transform: translateY(0); }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Email Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.auth-input:focus {
  outline: none;
  border-color: var(--text-secondary);
}

.btn-auth-submit {
  width: 100%;
  padding: 11px;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
  margin-top: 2px;
}
.btn-auth-submit:hover { opacity: 0.85; }

.auth-toggle {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.auth-toggle a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-error {
  font-size: 12px;
  color: #e53935;
  text-align: center;
  margin: 0;
  padding: 8px;
  background: rgba(229, 57, 53, 0.08);
  border-radius: 6px;
}

/* ── Header User Info ─────────────────────────────────────────────── */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
}

.user-name {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-signout {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color 0.15s;
}
.btn-signout:hover { color: var(--text-primary); }
